HSL(217, 55%, 40%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(217,55%,40%)]

Color Conversions

Format Value CSS Usage
HSL hsl(217, 55%, 40%) color: hsl(217, 55%, 40%)
HEX #2E599E color: #2E599E
RGB rgb(46, 89, 158) color: rgb(46, 89, 158)
CMYK cmyk(71%, 44%, 0%, 38%)
HSV hsv(217, 71%, 62%)
HWB hwb(217 18% 38%) color: hwb(217 18% 38%)
OKLCH oklch(0.4699 0.1218 259.46) color: oklch(0.4699 0.1218 259.46)
Lab lab(38.19 9.12 -41.91) color: lab(38.19 9.12 -41.91)
LCH lch(38.19 42.89 282.28) color: lch(38.19 42.89 282.28)

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 6.91:1
vs Black 3.04:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#41418D — rgb(65, 65, 141)

Deuteranopia (Green-blind)

#3E3B89 — rgb(62, 59, 137)

Tritanopia (Blue-blind)

#30807D — rgb(48, 128, 125)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(217, 55%, 40%);

text

color: hsl(217, 55%, 40%);

border

border: 2px solid hsl(217, 55%, 40%);

gradient light

background: linear-gradient(to right, hsl(217, 55%, 60%), hsl(217, 55%, 40%));

gradient dark

background: linear-gradient(to right, hsl(217, 55%, 40%), hsl(217, 55%, 20%))

hex

background-color: #2E599E;

tailwind

bg-[hsl(217,55%,40%)]

box shadow

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

css variable

--color-primary: hsl(217, 55%, 40%);

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(217, 55%, 40%)?

HEX: #2E599E | RGB: rgb(46, 89, 158) | CMYK: 71%, 44%, 0%, 38% | HSV: 217°, 71%, 62%. Copy any format from the conversion table above.

What colors go well with #2E599E?

The complementary color is HSL(37, 55%, 40%). For a triadic harmony, use hues 217°, 337°, and 97°. For analogous combinations, try hues 187° and 247°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(217, 55%, 40%) in CSS?

As HSL: color: hsl(217, 55%, 40%); — As HEX: color: #2E599E; — As RGB: color: rgb(46, 89, 158); — Tailwind CSS: bg-[hsl(217,55%,40%)] — CSS variable: --color-primary: hsl(217, 55%, 40%);