HSL(216, 52%, 20%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(216,52%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(216, 52%, 20%) | color: hsl(216, 52%, 20%) | |
| HEX | #182E4E | color: #182E4E | |
| RGB | rgb(24, 46, 78) | color: rgb(24, 46, 78) | |
| CMYK | cmyk(69%, 41%, 0%, 69%) | — | |
| HSV | hsv(216, 69%, 31%) | — | |
| HWB | hwb(216 10% 69%) | color: hwb(216 10% 69%) | |
| OKLCH | oklch(0.3007 0.0648 257.77) | color: oklch(0.3007 0.0648 257.77) | |
| Lab | lab(18.79 3.13 -22.3) | color: lab(18.79 3.13 -22.3) | |
| LCH | lch(18.79 22.52 277.99) | color: lch(18.79 22.52 277.99) |
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)
#222246 — rgb(34, 34, 70)
Deuteranopia (Green-blind)
#201F44 — rgb(32, 31, 68)
Tritanopia (Blue-blind)
#19403F — rgb(25, 64, 63)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(216, 52%, 20%);
text
color: hsl(216, 52%, 20%);
border
border: 2px solid hsl(216, 52%, 20%);
gradient light
background: linear-gradient(to right, hsl(216, 52%, 40%), hsl(216, 52%, 20%));
gradient dark
background: linear-gradient(to right, hsl(216, 52%, 20%), hsl(216, 52%, 0%))
hex
background-color: #182E4E;
tailwind
bg-[hsl(216,52%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(216, 52%, 20%, 0.4);
css variable
--color-primary: hsl(216, 52%, 20%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(216, 52%, 20%)?
HEX: #182E4E | RGB: rgb(24, 46, 78) | CMYK: 69%, 41%, 0%, 69% | HSV: 216°, 69%, 31%. Copy any format from the conversion table above.
What colors go well with #182E4E?
The complementary color is HSL(36, 52%, 20%). For a triadic harmony, use hues 216°, 336°, and 96°. For analogous combinations, try hues 186° and 246°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(216, 52%, 20%) in CSS?
As HSL: color: hsl(216, 52%, 20%); — As HEX: color: #182E4E; — As RGB: color: rgb(24, 46, 78); — Tailwind CSS: bg-[hsl(216,52%,20%)] — CSS variable: --color-primary: hsl(216, 52%, 20%);