HSL(229, 96%, 20%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(229,96%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(229, 96%, 20%) | color: hsl(229, 96%, 20%) | |
| HEX | #021464 | color: #021464 | |
| RGB | rgb(2, 20, 100) | color: rgb(2, 20, 100) | |
| CMYK | cmyk(98%, 80%, 0%, 61%) | — | |
| HSV | hsv(229, 98%, 39%) | — | |
| HWB | hwb(229 1% 61%) | color: hwb(229 1% 61%) | |
| OKLCH | oklch(0.2546 0.1394 264.54) | color: oklch(0.2546 0.1394 264.54) | |
| Lab | lab(12.18 28.72 -47.83) | color: lab(12.18 28.72 -47.83) | |
| LCH | lch(12.18 55.79 300.98) | color: lch(12.18 55.79 300.98) |
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)
#0A0A51 — rgb(10, 10, 81)
Deuteranopia (Green-blind)
#09074C — rgb(9, 7, 76)
Tritanopia (Blue-blind)
#03413E — rgb(3, 65, 62)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(229, 96%, 20%);
text
color: hsl(229, 96%, 20%);
border
border: 2px solid hsl(229, 96%, 20%);
gradient light
background: linear-gradient(to right, hsl(229, 96%, 40%), hsl(229, 96%, 20%));
gradient dark
background: linear-gradient(to right, hsl(229, 96%, 20%), hsl(229, 96%, 0%))
hex
background-color: #021464;
tailwind
bg-[hsl(229,96%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(229, 96%, 20%, 0.4);
css variable
--color-primary: hsl(229, 96%, 20%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(229, 96%, 20%)?
HEX: #021464 | RGB: rgb(2, 20, 100) | CMYK: 98%, 80%, 0%, 61% | HSV: 229°, 98%, 39%. Copy any format from the conversion table above.
What colors go well with #021464?
The complementary color is HSL(49, 96%, 20%). For a triadic harmony, use hues 229°, 349°, and 109°. For analogous combinations, try hues 199° and 259°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(229, 96%, 20%) in CSS?
As HSL: color: hsl(229, 96%, 20%); — As HEX: color: #021464; — As RGB: color: rgb(2, 20, 100); — Tailwind CSS: bg-[hsl(229,96%,20%)] — CSS variable: --color-primary: hsl(229, 96%, 20%);