HSL(246, 99%, 8%)
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,99%,8%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(246, 99%, 8%) | color: hsl(246, 99%, 8%) | |
| HEX | #040029 | color: #040029 | |
| RGB | rgb(4, 0, 41) | color: rgb(4, 0, 41) | |
| CMYK | cmyk(90%, 100%, 0%, 84%) | — | |
| HSV | hsv(246, 100%, 16%) | — | |
| HWB | hwb(246 0% 84%) | color: hwb(246 0% 84%) | |
| OKLCH | oklch(0.1335 0.0843 274.44) | color: oklch(0.1335 0.0843 274.44) | |
| Lab | lab(1.68 11.2 -23.24) | color: lab(1.68 11.2 -23.24) | |
| LCH | lch(1.68 25.8 295.73) | color: lch(1.68 25.8 295.73) |
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)
#02021F — rgb(2, 2, 31)
Deuteranopia (Green-blind)
#03031D — rgb(3, 3, 29)
Tritanopia (Blue-blind)
#041716 — rgb(4, 23, 22)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(246, 99%, 8%);
text
color: hsl(246, 99%, 8%);
border
border: 2px solid hsl(246, 99%, 8%);
gradient light
background: linear-gradient(to right, hsl(246, 99%, 28%), hsl(246, 99%, 8%));
gradient dark
background: linear-gradient(to right, hsl(246, 99%, 8%), hsl(246, 99%, 0%))
hex
background-color: #040029;
tailwind
bg-[hsl(246,99%,8%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(246, 99%, 8%, 0.4);
css variable
--color-primary: hsl(246, 99%, 8%);
Related Colors
Use Cases for Very Dark Blue
Frequently Asked Questions
What are all the color codes for HSL(246, 99%, 8%)?
HEX: #040029 | RGB: rgb(4, 0, 41) | CMYK: 90%, 100%, 0%, 84% | HSV: 246°, 100%, 16%. Copy any format from the conversion table above.
What colors go well with #040029?
The complementary color is HSL(66, 99%, 8%). 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, 99%, 8%) in CSS?
As HSL: color: hsl(246, 99%, 8%); — As HEX: color: #040029; — As RGB: color: rgb(4, 0, 41); — Tailwind CSS: bg-[hsl(246,99%,8%)] — CSS variable: --color-primary: hsl(246, 99%, 8%);