HSL(231, 87%, 11%)
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,87%,11%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(231, 87%, 11%) | color: hsl(231, 87%, 11%) | |
| HEX | #040B34 | color: #040B34 | |
| RGB | rgb(4, 11, 52) | color: rgb(4, 11, 52) | |
| CMYK | cmyk(92%, 79%, 0%, 80%) | — | |
| HSV | hsv(231, 92%, 20%) | — | |
| HWB | hwb(231 2% 80%) | color: hwb(231 2% 80%) | |
| OKLCH | oklch(0.1784 0.0809 267.48) | color: oklch(0.1784 0.0809 267.48) | |
| Lab | lab(4.63 12.36 -26.82) | color: lab(4.63 12.36 -26.82) | |
| LCH | lch(4.63 29.53 294.74) | color: lch(4.63 29.53 294.74) |
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)
#07072A — rgb(7, 7, 42)
Deuteranopia (Green-blind)
#070628 — rgb(7, 6, 40)
Tritanopia (Blue-blind)
#042221 — rgb(4, 34, 33)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(231, 87%, 11%);
text
color: hsl(231, 87%, 11%);
border
border: 2px solid hsl(231, 87%, 11%);
gradient light
background: linear-gradient(to right, hsl(231, 87%, 31%), hsl(231, 87%, 11%));
gradient dark
background: linear-gradient(to right, hsl(231, 87%, 11%), hsl(231, 87%, 0%))
hex
background-color: #040B34;
tailwind
bg-[hsl(231,87%,11%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(231, 87%, 11%, 0.4);
css variable
--color-primary: hsl(231, 87%, 11%);
Related Colors
Use Cases for Very Dark Blue
Frequently Asked Questions
What are all the color codes for HSL(231, 87%, 11%)?
HEX: #040B34 | RGB: rgb(4, 11, 52) | CMYK: 92%, 79%, 0%, 80% | HSV: 231°, 92%, 20%. Copy any format from the conversion table above.
What colors go well with #040B34?
The complementary color is HSL(51, 87%, 11%). 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, 87%, 11%) in CSS?
As HSL: color: hsl(231, 87%, 11%); — As HEX: color: #040B34; — As RGB: color: rgb(4, 11, 52); — Tailwind CSS: bg-[hsl(231,87%,11%)] — CSS variable: --color-primary: hsl(231, 87%, 11%);