HSL(237, 91%, 9%)
Very Dark Blue — Blue color
Adjust Color
Color Information
Color Name
Very Dark Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(237,91%,9%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(237, 91%, 9%) | color: hsl(237, 91%, 9%) | |
| HEX | #02042C | color: #02042C | |
| RGB | rgb(2, 4, 44) | color: rgb(2, 4, 44) | |
| CMYK | cmyk(95%, 91%, 0%, 83%) | — | |
| HSV | hsv(237, 95%, 17%) | — | |
| HWB | hwb(237 1% 83%) | color: hwb(237 1% 83%) | |
| OKLCH | oklch(0.1486 0.0809 267.9) | color: oklch(0.1486 0.0809 267.9) | |
| Lab | lab(2.54 10.46 -24.18) | color: lab(2.54 10.46 -24.18) | |
| LCH | lch(2.54 26.35 293.39) | color: lch(2.54 26.35 293.39) |
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)
#030322 — rgb(3, 3, 34)
Deuteranopia (Green-blind)
#030320 — rgb(3, 3, 32)
Tritanopia (Blue-blind)
#021B19 — rgb(2, 27, 25)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(237, 91%, 9%);
text
color: hsl(237, 91%, 9%);
border
border: 2px solid hsl(237, 91%, 9%);
gradient light
background: linear-gradient(to right, hsl(237, 91%, 29%), hsl(237, 91%, 9%));
gradient dark
background: linear-gradient(to right, hsl(237, 91%, 9%), hsl(237, 91%, 0%))
hex
background-color: #02042C;
tailwind
bg-[hsl(237,91%,9%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(237, 91%, 9%, 0.4);
css variable
--color-primary: hsl(237, 91%, 9%);
Related Colors
Use Cases for Very Dark Blue
Frequently Asked Questions
What are all the color codes for HSL(237, 91%, 9%)?
HEX: #02042C | RGB: rgb(2, 4, 44) | CMYK: 95%, 91%, 0%, 83% | HSV: 237°, 95%, 17%. Copy any format from the conversion table above.
What colors go well with #02042C?
The complementary color is HSL(57, 91%, 9%). For a triadic harmony, use hues 237°, 357°, and 117°. For analogous combinations, try hues 207° and 267°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(237, 91%, 9%) in CSS?
As HSL: color: hsl(237, 91%, 9%); — As HEX: color: #02042C; — As RGB: color: rgb(2, 4, 44); — Tailwind CSS: bg-[hsl(237,91%,9%)] — CSS variable: --color-primary: hsl(237, 91%, 9%);