HSL(247, 91%, 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(247,91%,5%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(247, 91%, 5%) | color: hsl(247, 91%, 5%) | |
| HEX | #040118 | color: #040118 | |
| RGB | rgb(4, 1, 24) | color: rgb(4, 1, 24) | |
| CMYK | cmyk(83%, 96%, 0%, 91%) | — | |
| HSV | hsv(248, 96%, 9%) | — | |
| HWB | hwb(248 0% 91%) | color: hwb(248 0% 91%) | |
| OKLCH | oklch(0.1109 0.0569 283.52) | color: oklch(0.1109 0.0569 283.52) | |
| Lab | lab(1.02 4.83 -10.73) | color: lab(1.02 4.83 -10.73) | |
| LCH | lch(1.02 11.77 294.23) | color: lch(1.02 11.77 294.23) |
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)
#030312 — rgb(3, 3, 18)
Deuteranopia (Green-blind)
#030311 — rgb(3, 3, 17)
Tritanopia (Blue-blind)
#040E0D — rgb(4, 14, 13)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(247, 91%, 5%);
text
color: hsl(247, 91%, 5%);
border
border: 2px solid hsl(247, 91%, 5%);
gradient light
background: linear-gradient(to right, hsl(247, 91%, 25%), hsl(247, 91%, 5%));
gradient dark
background: linear-gradient(to right, hsl(247, 91%, 5%), hsl(247, 91%, 0%))
hex
background-color: #040118;
tailwind
bg-[hsl(247,91%,5%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(247, 91%, 5%, 0.4);
css variable
--color-primary: hsl(247, 91%, 5%);
Related Colors
Use Cases for Very Dark Blue
Frequently Asked Questions
What are all the color codes for HSL(247, 91%, 5%)?
HEX: #040118 | RGB: rgb(4, 1, 24) | CMYK: 83%, 96%, 0%, 91% | HSV: 248°, 96%, 9%. Copy any format from the conversion table above.
What colors go well with #040118?
The complementary color is HSL(67, 91%, 5%). For a triadic harmony, use hues 247°, 7°, and 127°. For analogous combinations, try hues 217° and 277°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(247, 91%, 5%) in CSS?
As HSL: color: hsl(247, 91%, 5%); — As HEX: color: #040118; — As RGB: color: rgb(4, 1, 24); — Tailwind CSS: bg-[hsl(247,91%,5%)] — CSS variable: --color-primary: hsl(247, 91%, 5%);