HSL(222, 75%, 7%)
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,75%,7%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(222, 75%, 7%) | color: hsl(222, 75%, 7%) | |
| HEX | #040C1F | color: #040C1F | |
| RGB | rgb(4, 12, 31) | color: rgb(4, 12, 31) | |
| CMYK | cmyk(87%, 61%, 0%, 88%) | — | |
| HSV | hsv(222, 87%, 12%) | — | |
| HWB | hwb(222 2% 88%) | color: hwb(222 2% 88%) | |
| OKLCH | oklch(0.1584 0.0429 262.39) | color: oklch(0.1584 0.0429 262.39) | |
| Lab | lab(3.5 2.47 -12.65) | color: lab(3.5 2.47 -12.65) | |
| LCH | lch(3.5 12.89 281.05) | color: lch(3.5 12.89 281.05) |
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)
#07081A — rgb(7, 8, 26)
Deuteranopia (Green-blind)
#070619 — rgb(7, 6, 25)
Tritanopia (Blue-blind)
#041716 — rgb(4, 23, 22)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(222, 75%, 7%);
text
color: hsl(222, 75%, 7%);
border
border: 2px solid hsl(222, 75%, 7%);
gradient light
background: linear-gradient(to right, hsl(222, 75%, 27%), hsl(222, 75%, 7%));
gradient dark
background: linear-gradient(to right, hsl(222, 75%, 7%), hsl(222, 75%, 0%))
hex
background-color: #040C1F;
tailwind
bg-[hsl(222,75%,7%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(222, 75%, 7%, 0.4);
css variable
--color-primary: hsl(222, 75%, 7%);
Related Colors
Use Cases for Very Dark Blue
Frequently Asked Questions
What are all the color codes for HSL(222, 75%, 7%)?
HEX: #040C1F | RGB: rgb(4, 12, 31) | CMYK: 87%, 61%, 0%, 88% | HSV: 222°, 87%, 12%. Copy any format from the conversion table above.
What colors go well with #040C1F?
The complementary color is HSL(42, 75%, 7%). 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, 75%, 7%) in CSS?
As HSL: color: hsl(222, 75%, 7%); — As HEX: color: #040C1F; — As RGB: color: rgb(4, 12, 31); — Tailwind CSS: bg-[hsl(222,75%,7%)] — CSS variable: --color-primary: hsl(222, 75%, 7%);