HSL(221, 80%, 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(221,80%,7%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(221, 80%, 7%) | color: hsl(221, 80%, 7%) | |
| HEX | #040D20 | color: #040D20 | |
| RGB | rgb(4, 13, 32) | color: rgb(4, 13, 32) | |
| CMYK | cmyk(88%, 59%, 0%, 87%) | — | |
| HSV | hsv(221, 88%, 13%) | — | |
| HWB | hwb(221 2% 87%) | color: hwb(221 2% 87%) | |
| OKLCH | oklch(0.1623 0.0431 261.04) | color: oklch(0.1623 0.0431 261.04) | |
| Lab | lab(3.77 2.35 -13.01) | color: lab(3.77 2.35 -13.01) | |
| LCH | lch(3.77 13.22 280.24) | color: lch(3.77 13.22 280.24) |
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)
#08081B — rgb(8, 8, 27)
Deuteranopia (Green-blind)
#07071A — rgb(7, 7, 26)
Tritanopia (Blue-blind)
#041817 — rgb(4, 24, 23)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(221, 80%, 7%);
text
color: hsl(221, 80%, 7%);
border
border: 2px solid hsl(221, 80%, 7%);
gradient light
background: linear-gradient(to right, hsl(221, 80%, 27%), hsl(221, 80%, 7%));
gradient dark
background: linear-gradient(to right, hsl(221, 80%, 7%), hsl(221, 80%, 0%))
hex
background-color: #040D20;
tailwind
bg-[hsl(221,80%,7%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(221, 80%, 7%, 0.4);
css variable
--color-primary: hsl(221, 80%, 7%);
Related Colors
Use Cases for Very Dark Blue
Frequently Asked Questions
What are all the color codes for HSL(221, 80%, 7%)?
HEX: #040D20 | RGB: rgb(4, 13, 32) | CMYK: 88%, 59%, 0%, 87% | HSV: 221°, 88%, 13%. Copy any format from the conversion table above.
What colors go well with #040D20?
The complementary color is HSL(41, 80%, 7%). For a triadic harmony, use hues 221°, 341°, and 101°. For analogous combinations, try hues 191° and 251°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(221, 80%, 7%) in CSS?
As HSL: color: hsl(221, 80%, 7%); — As HEX: color: #040D20; — As RGB: color: rgb(4, 13, 32); — Tailwind CSS: bg-[hsl(221,80%,7%)] — CSS variable: --color-primary: hsl(221, 80%, 7%);