HSL(231, 71%, 5%)
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(231,71%,5%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(231, 71%, 5%) | color: hsl(231, 71%, 5%) | |
| HEX | #040616 | color: #040616 | |
| RGB | rgb(4, 6, 22) | color: rgb(4, 6, 22) | |
| CMYK | cmyk(82%, 73%, 0%, 91%) | — | |
| HSV | hsv(233, 82%, 9%) | — | |
| HWB | hwb(233 2% 91%) | color: hwb(233 2% 91%) | |
| OKLCH | oklch(0.1309 0.0369 272.57) | color: oklch(0.1309 0.0369 272.57) | |
| Lab | lab(1.93 2.32 -7.92) | color: lab(1.93 2.32 -7.92) | |
| LCH | lch(1.93 8.25 286.33) | color: lch(1.93 8.25 286.33) |
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)
#050512 — rgb(5, 5, 18)
Deuteranopia (Green-blind)
#050511 — rgb(5, 5, 17)
Tritanopia (Blue-blind)
#040F0E — rgb(4, 15, 14)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(231, 71%, 5%);
text
color: hsl(231, 71%, 5%);
border
border: 2px solid hsl(231, 71%, 5%);
gradient light
background: linear-gradient(to right, hsl(231, 71%, 25%), hsl(231, 71%, 5%));
gradient dark
background: linear-gradient(to right, hsl(231, 71%, 5%), hsl(231, 71%, 0%))
hex
background-color: #040616;
tailwind
bg-[hsl(231,71%,5%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(231, 71%, 5%, 0.4);
css variable
--color-primary: hsl(231, 71%, 5%);
Related Colors
Use Cases for Very Dark Blue
Frequently Asked Questions
What are all the color codes for HSL(231, 71%, 5%)?
HEX: #040616 | RGB: rgb(4, 6, 22) | CMYK: 82%, 73%, 0%, 91% | HSV: 233°, 82%, 9%. Copy any format from the conversion table above.
What colors go well with #040616?
The complementary color is HSL(51, 71%, 5%). For a triadic harmony, use hues 231°, 351°, and 111°. For analogous combinations, try hues 201° and 261°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(231, 71%, 5%) in CSS?
As HSL: color: hsl(231, 71%, 5%); — As HEX: color: #040616; — As RGB: color: rgb(4, 6, 22); — Tailwind CSS: bg-[hsl(231,71%,5%)] — CSS variable: --color-primary: hsl(231, 71%, 5%);