HSL(232, 55%, 20%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(232,55%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(232, 55%, 20%) | color: hsl(232, 55%, 20%) | |
| HEX | #171E4F | color: #171E4F | |
| RGB | rgb(23, 30, 79) | color: rgb(23, 30, 79) | |
| CMYK | cmyk(71%, 62%, 0%, 69%) | — | |
| HSV | hsv(233, 71%, 31%) | — | |
| HWB | hwb(233 9% 69%) | color: hwb(233 9% 69%) | |
| OKLCH | oklch(0.2618 0.0897 272.48) | color: oklch(0.2618 0.0897 272.48) | |
| Lab | lab(13.68 15.17 -31.18) | color: lab(13.68 15.17 -31.18) | |
| LCH | lch(13.68 34.67 295.94) | color: lch(13.68 34.67 295.94) |
Color Theory
Accessibility (WCAG)
White text on color
Black text on color
Colored text
Contrast Ratios
AA Normal (4.5:1)
AA Large (3:1)
AAA Normal (7:1)
Best text on this color: white
Color Blindness Simulation
Protanopia (Red-blind)
#1A1A43 — rgb(26, 26, 67)
Deuteranopia (Green-blind)
#1A1940 — rgb(26, 25, 64)
Tritanopia (Blue-blind)
#173A38 — rgb(23, 58, 56)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(232, 55%, 20%);
text
color: hsl(232, 55%, 20%);
border
border: 2px solid hsl(232, 55%, 20%);
gradient light
background: linear-gradient(to right, hsl(232, 55%, 40%), hsl(232, 55%, 20%));
gradient dark
background: linear-gradient(to right, hsl(232, 55%, 20%), hsl(232, 55%, 0%))
hex
background-color: #171E4F;
tailwind
bg-[hsl(232,55%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(232, 55%, 20%, 0.4);
css variable
--color-primary: hsl(232, 55%, 20%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(232, 55%, 20%)?
HEX: #171E4F | RGB: rgb(23, 30, 79) | CMYK: 71%, 62%, 0%, 69% | HSV: 233°, 71%, 31%. Copy any format from the conversion table above.
What colors go well with #171E4F?
The complementary color is HSL(52, 55%, 20%). For a triadic harmony, use hues 232°, 352°, and 112°. For analogous combinations, try hues 202° and 262°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(232, 55%, 20%) in CSS?
As HSL: color: hsl(232, 55%, 20%); — As HEX: color: #171E4F; — As RGB: color: rgb(23, 30, 79); — Tailwind CSS: bg-[hsl(232,55%,20%)] — CSS variable: --color-primary: hsl(232, 55%, 20%);