HSL(233, 55%, 20%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(233,55%,20%)]

Color Conversions

Format Value CSS Usage
HSL hsl(233, 55%, 20%) color: hsl(233, 55%, 20%)
HEX #171D4F color: #171D4F
RGB rgb(23, 29, 79) color: rgb(23, 29, 79)
CMYK cmyk(71%, 63%, 0%, 69%)
HSV hsv(234, 71%, 31%)
HWB hwb(234 9% 69%) color: hwb(234 9% 69%)
OKLCH oklch(0.2595 0.0912 273.09) color: oklch(0.2595 0.0912 273.09)
Lab lab(13.38 15.92 -31.66) color: lab(13.38 15.92 -31.66)
LCH lch(13.38 35.44 296.7) color: lch(13.38 35.44 296.7)

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 15.85:1
vs Black 1.33: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)

#1A1A43 — rgb(26, 26, 67)

Deuteranopia (Green-blind)

#191940 — rgb(25, 25, 64)

Tritanopia (Blue-blind)

#173937 — rgb(23, 57, 55)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(233, 55%, 20%);

text

color: hsl(233, 55%, 20%);

border

border: 2px solid hsl(233, 55%, 20%);

gradient light

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

gradient dark

background: linear-gradient(to right, hsl(233, 55%, 20%), hsl(233, 55%, 0%))

hex

background-color: #171D4F;

tailwind

bg-[hsl(233,55%,20%)]

box shadow

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

css variable

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

HEX: #171D4F | RGB: rgb(23, 29, 79) | CMYK: 71%, 63%, 0%, 69% | HSV: 234°, 71%, 31%. Copy any format from the conversion table above.

What colors go well with #171D4F?

The complementary color is HSL(53, 55%, 20%). For a triadic harmony, use hues 233°, 353°, and 113°. For analogous combinations, try hues 203° and 263°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(233, 55%, 20%) in CSS?

As HSL: color: hsl(233, 55%, 20%); — As HEX: color: #171D4F; — As RGB: color: rgb(23, 29, 79); — Tailwind CSS: bg-[hsl(233,55%,20%)] — CSS variable: --color-primary: hsl(233, 55%, 20%);