HSL(207, 54%, 31%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

7000K

CSS Class

bg-[hsl(207,54%,31%)]

Color Conversions

Format Value CSS Usage
HSL hsl(207, 54%, 31%) color: hsl(207, 54%, 31%)
HEX #24537A color: #24537A
RGB rgb(36, 83, 122) color: rgb(36, 83, 122)
CMYK cmyk(70%, 32%, 0%, 52%)
HSV hsv(207, 70%, 48%)
HWB hwb(207 14% 52%) color: hwb(207 14% 52%)
OKLCH oklch(0.4288 0.0827 246.41) color: oklch(0.4288 0.0827 246.41)
Lab lab(33.91 -2.29 -26.79) color: lab(33.91 -2.29 -26.79)
LCH lch(33.91 26.89 265.11) color: lch(33.91 26.89 265.11)

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 8.1:1
vs Black 2.59:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: FAIL ✗

AAA Normal (7:1)

on White: PASS ✓

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#383971 — rgb(56, 57, 113)

Deuteranopia (Green-blind)

#36326E — rgb(54, 50, 110)

Tritanopia (Blue-blind)

#266967 — rgb(38, 105, 103)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(207, 54%, 31%);

text

color: hsl(207, 54%, 31%);

border

border: 2px solid hsl(207, 54%, 31%);

gradient light

background: linear-gradient(to right, hsl(207, 54%, 51%), hsl(207, 54%, 31%));

gradient dark

background: linear-gradient(to right, hsl(207, 54%, 31%), hsl(207, 54%, 11%))

hex

background-color: #24537A;

tailwind

bg-[hsl(207,54%,31%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(207, 54%, 31%, 0.4);

css variable

--color-primary: hsl(207, 54%, 31%);

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(207, 54%, 31%)?

HEX: #24537A | RGB: rgb(36, 83, 122) | CMYK: 70%, 32%, 0%, 52% | HSV: 207°, 70%, 48%. Copy any format from the conversion table above.

What colors go well with #24537A?

The complementary color is HSL(27, 54%, 31%). For a triadic harmony, use hues 207°, 327°, and 87°. For analogous combinations, try hues 177° and 237°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(207, 54%, 31%) in CSS?

As HSL: color: hsl(207, 54%, 31%); — As HEX: color: #24537A; — As RGB: color: rgb(36, 83, 122); — Tailwind CSS: bg-[hsl(207,54%,31%)] — CSS variable: --color-primary: hsl(207, 54%, 31%);