HSL(236, 21%, 20%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(236,21%,20%)]

Color Conversions

Format Value CSS Usage
HSL hsl(236, 21%, 20%) color: hsl(236, 21%, 20%)
HEX #282A3E color: #282A3E
RGB rgb(40, 42, 62) color: rgb(40, 42, 62)
CMYK cmyk(35%, 32%, 0%, 76%)
HSV hsv(235, 35%, 24%)
HWB hwb(235 16% 76%) color: hwb(235 16% 76%)
OKLCH oklch(0.2924 0.0365 279.47) color: oklch(0.2924 0.0365 279.47)
Lab lab(17.71 4.8 -12.99) color: lab(17.71 4.8 -12.99)
LCH lch(17.71 13.85 290.28) color: lch(17.71 13.85 290.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 14.08:1
vs Black 1.49: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)

#292939 — rgb(41, 41, 57)

Deuteranopia (Green-blind)

#292938 — rgb(41, 41, 56)

Tritanopia (Blue-blind)

#283535 — rgb(40, 53, 53)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(236, 21%, 20%);

text

color: hsl(236, 21%, 20%);

border

border: 2px solid hsl(236, 21%, 20%);

gradient light

background: linear-gradient(to right, hsl(236, 21%, 40%), hsl(236, 21%, 20%));

gradient dark

background: linear-gradient(to right, hsl(236, 21%, 20%), hsl(236, 21%, 0%))

hex

background-color: #282A3E;

tailwind

bg-[hsl(236,21%,20%)]

box shadow

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

css variable

--color-primary: hsl(236, 21%, 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(236, 21%, 20%)?

HEX: #282A3E | RGB: rgb(40, 42, 62) | CMYK: 35%, 32%, 0%, 76% | HSV: 235°, 35%, 24%. Copy any format from the conversion table above.

What colors go well with #282A3E?

The complementary color is HSL(56, 21%, 20%). For a triadic harmony, use hues 236°, 356°, and 116°. For analogous combinations, try hues 206° and 266°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(236, 21%, 20%) in CSS?

As HSL: color: hsl(236, 21%, 20%); — As HEX: color: #282A3E; — As RGB: color: rgb(40, 42, 62); — Tailwind CSS: bg-[hsl(236,21%,20%)] — CSS variable: --color-primary: hsl(236, 21%, 20%);