HSL(222, 82%, 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(222,82%,9%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(222, 82%, 9%) | color: hsl(222, 82%, 9%) | |
| HEX | #040F2A | color: #040F2A | |
| RGB | rgb(4, 15, 42) | color: rgb(4, 15, 42) | |
| CMYK | cmyk(90%, 64%, 0%, 84%) | — | |
| HSV | hsv(223, 90%, 16%) | — | |
| HWB | hwb(223 2% 84%) | color: hwb(223 2% 84%) | |
| OKLCH | oklch(0.1772 0.058 262.99) | color: oklch(0.1772 0.058 262.99) | |
| Lab | lab(4.83 5.35 -19.05) | color: lab(4.83 5.35 -19.05) | |
| LCH | lch(4.83 19.79 285.69) | color: lch(4.83 19.79 285.69) |
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)
#090923 — rgb(9, 9, 35)
Deuteranopia (Green-blind)
#080722 — rgb(8, 7, 34)
Tritanopia (Blue-blind)
#051E1D — rgb(5, 30, 29)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(222, 82%, 9%);
text
color: hsl(222, 82%, 9%);
border
border: 2px solid hsl(222, 82%, 9%);
gradient light
background: linear-gradient(to right, hsl(222, 82%, 29%), hsl(222, 82%, 9%));
gradient dark
background: linear-gradient(to right, hsl(222, 82%, 9%), hsl(222, 82%, 0%))
hex
background-color: #040F2A;
tailwind
bg-[hsl(222,82%,9%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(222, 82%, 9%, 0.4);
css variable
--color-primary: hsl(222, 82%, 9%);
Related Colors
Use Cases for Very Dark Blue
Frequently Asked Questions
What are all the color codes for HSL(222, 82%, 9%)?
HEX: #040F2A | RGB: rgb(4, 15, 42) | CMYK: 90%, 64%, 0%, 84% | HSV: 223°, 90%, 16%. Copy any format from the conversion table above.
What colors go well with #040F2A?
The complementary color is HSL(42, 82%, 9%). For a triadic harmony, use hues 222°, 342°, and 102°. For analogous combinations, try hues 192° and 252°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(222, 82%, 9%) in CSS?
As HSL: color: hsl(222, 82%, 9%); — As HEX: color: #040F2A; — As RGB: color: rgb(4, 15, 42); — Tailwind CSS: bg-[hsl(222,82%,9%)] — CSS variable: --color-primary: hsl(222, 82%, 9%);