HSL(221, 27%, 20%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(221,27%,20%)]

Color Conversions

Format Value CSS Usage
HSL hsl(221, 27%, 20%) color: hsl(221, 27%, 20%)
HEX #252E41 color: #252E41
RGB rgb(37, 46, 65) color: rgb(37, 46, 65)
CMYK cmyk(43%, 29%, 0%, 75%)
HSV hsv(221, 43%, 25%)
HWB hwb(221 14% 75%) color: hwb(221 14% 75%)
OKLCH oklch(0.3017 0.0368 264.71) color: oklch(0.3017 0.0368 264.71)
Lab lab(18.92 1.91 -13.2) color: lab(18.92 1.91 -13.2)
LCH lch(18.92 13.34 278.23) color: lch(18.92 13.34 278.23)

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 13.59:1
vs Black 1.55: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)

#29293C — rgb(41, 41, 60)

Deuteranopia (Green-blind)

#28283B — rgb(40, 40, 59)

Tritanopia (Blue-blind)

#253938 — rgb(37, 57, 56)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(221, 27%, 20%);

text

color: hsl(221, 27%, 20%);

border

border: 2px solid hsl(221, 27%, 20%);

gradient light

background: linear-gradient(to right, hsl(221, 27%, 40%), hsl(221, 27%, 20%));

gradient dark

background: linear-gradient(to right, hsl(221, 27%, 20%), hsl(221, 27%, 0%))

hex

background-color: #252E41;

tailwind

bg-[hsl(221,27%,20%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(221, 27%, 20%, 0.4);

css variable

--color-primary: hsl(221, 27%, 20%);

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(221, 27%, 20%)?

HEX: #252E41 | RGB: rgb(37, 46, 65) | CMYK: 43%, 29%, 0%, 75% | HSV: 221°, 43%, 25%. Copy any format from the conversion table above.

What colors go well with #252E41?

The complementary color is HSL(41, 27%, 20%). For a triadic harmony, use hues 221°, 341°, and 101°. For analogous combinations, try hues 191° and 251°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(221, 27%, 20%) in CSS?

As HSL: color: hsl(221, 27%, 20%); — As HEX: color: #252E41; — As RGB: color: rgb(37, 46, 65); — Tailwind CSS: bg-[hsl(221,27%,20%)] — CSS variable: --color-primary: hsl(221, 27%, 20%);