HSL(249, 40%, 59%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(249,40%,59%)]

Color Conversions

Format Value CSS Usage
HSL hsl(249, 40%, 59%) color: hsl(249, 40%, 59%)
HEX #796DC0 color: #796DC0
RGB rgb(121, 109, 192) color: rgb(121, 109, 192)
CMYK cmyk(37%, 43%, 0%, 25%)
HSV hsv(249, 43%, 75%)
HWB hwb(249 43% 25%) color: hwb(249 43% 25%)
OKLCH oklch(0.5826 0.1248 288.54) color: oklch(0.5826 0.1248 288.54)
Lab lab(50.46 24.5 -42.03) color: lab(50.46 24.5 -42.03)
LCH lch(50.46 48.65 300.24) color: lch(50.46 48.65 300.24)

Color Theory

Complementary

Triadic

Analogous

Tetradic (Square)

Split-Complementary

Accessibility (WCAG)

White text on color

Black text on color

Color on white bg

Colored text

Contrast Ratios

vs White 4.41:1
vs Black 4.76:1

AA Normal (4.5:1)

on White: FAIL ✗ on Black: PASS ✓

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: black

Color Blindness Simulation

Protanopia (Red-blind)

#7474AC — rgb(116, 116, 172)

Deuteranopia (Green-blind)

#7575A7 — rgb(117, 117, 167)

Tritanopia (Blue-blind)

#789C99 — rgb(120, 156, 153)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(249, 40%, 59%);

text

color: hsl(249, 40%, 59%);

border

border: 2px solid hsl(249, 40%, 59%);

gradient light

background: linear-gradient(to right, hsl(249, 40%, 79%), hsl(249, 40%, 59%));

gradient dark

background: linear-gradient(to right, hsl(249, 40%, 59%), hsl(249, 40%, 39%))

hex

background-color: #796DC0;

tailwind

bg-[hsl(249,40%,59%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(249, 40%, 59%, 0.4);

css variable

--color-primary: hsl(249, 40%, 59%);

Related Colors

Use Cases for Blue

Corporate branding Trust signals Tech products Social media Primary buttons

Frequently Asked Questions

What are all the color codes for HSL(249, 40%, 59%)?

HEX: #796DC0 | RGB: rgb(121, 109, 192) | CMYK: 37%, 43%, 0%, 25% | HSV: 249°, 43%, 75%. Copy any format from the conversion table above.

What colors go well with #796DC0?

The complementary color is HSL(69, 40%, 59%). For a triadic harmony, use hues 249°, 9°, and 129°. For analogous combinations, try hues 219° and 279°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(249, 40%, 59%) in CSS?

As HSL: color: hsl(249, 40%, 59%); — As HEX: color: #796DC0; — As RGB: color: rgb(121, 109, 192); — Tailwind CSS: bg-[hsl(249,40%,59%)] — CSS variable: --color-primary: hsl(249, 40%, 59%);