HSL(246, 77%, 4%)
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(246,77%,4%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(246, 77%, 4%) | color: hsl(246, 77%, 4%) | |
| HEX | #040212 | color: #040212 | |
| RGB | rgb(4, 2, 18) | color: rgb(4, 2, 18) | |
| CMYK | cmyk(78%, 89%, 0%, 93%) | — | |
| HSV | hsv(248, 89%, 7%) | — | |
| HWB | hwb(248 1% 93%) | color: hwb(248 1% 93%) | |
| OKLCH | oklch(0.1084 0.0425 286.54) | color: oklch(0.1084 0.0425 286.54) | |
| Lab | lab(1.02 3.02 -6.6) | color: lab(1.02 3.02 -6.6) | |
| LCH | lch(1.02 7.26 294.59) | color: lch(1.02 7.26 294.59) |
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)
#03030E — rgb(3, 3, 14)
Deuteranopia (Green-blind)
#03030D — rgb(3, 3, 13)
Tritanopia (Blue-blind)
#040B0A — rgb(4, 11, 10)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(246, 77%, 4%);
text
color: hsl(246, 77%, 4%);
border
border: 2px solid hsl(246, 77%, 4%);
gradient light
background: linear-gradient(to right, hsl(246, 77%, 24%), hsl(246, 77%, 4%));
gradient dark
background: linear-gradient(to right, hsl(246, 77%, 4%), hsl(246, 77%, 0%))
hex
background-color: #040212;
tailwind
bg-[hsl(246,77%,4%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(246, 77%, 4%, 0.4);
css variable
--color-primary: hsl(246, 77%, 4%);
Related Colors
Use Cases for Very Dark Blue
Frequently Asked Questions
What are all the color codes for HSL(246, 77%, 4%)?
HEX: #040212 | RGB: rgb(4, 2, 18) | CMYK: 78%, 89%, 0%, 93% | HSV: 248°, 89%, 7%. Copy any format from the conversion table above.
What colors go well with #040212?
The complementary color is HSL(66, 77%, 4%). For a triadic harmony, use hues 246°, 6°, and 126°. For analogous combinations, try hues 216° and 276°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(246, 77%, 4%) in CSS?
As HSL: color: hsl(246, 77%, 4%); — As HEX: color: #040212; — As RGB: color: rgb(4, 2, 18); — Tailwind CSS: bg-[hsl(246,77%,4%)] — CSS variable: --color-primary: hsl(246, 77%, 4%);