HSL(236, 85%, 6%)
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(236,85%,6%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(236, 85%, 6%) | color: hsl(236, 85%, 6%) | |
| HEX | #02041C | color: #02041C | |
| RGB | rgb(2, 4, 28) | color: rgb(2, 4, 28) | |
| CMYK | cmyk(93%, 86%, 0%, 89%) | — | |
| HSV | hsv(235, 93%, 11%) | — | |
| HWB | hwb(235 1% 89%) | color: hwb(235 1% 89%) | |
| OKLCH | oklch(0.1265 0.055 269.39) | color: oklch(0.1265 0.055 269.39) | |
| Lab | lab(1.66 4.24 -13.04) | color: lab(1.66 4.24 -13.04) | |
| LCH | lch(1.66 13.71 288.01) | color: lch(1.66 13.71 288.01) |
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)
#030316 — rgb(3, 3, 22)
Deuteranopia (Green-blind)
#030315 — rgb(3, 3, 21)
Tritanopia (Blue-blind)
#021211 — rgb(2, 18, 17)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(236, 85%, 6%);
text
color: hsl(236, 85%, 6%);
border
border: 2px solid hsl(236, 85%, 6%);
gradient light
background: linear-gradient(to right, hsl(236, 85%, 26%), hsl(236, 85%, 6%));
gradient dark
background: linear-gradient(to right, hsl(236, 85%, 6%), hsl(236, 85%, 0%))
hex
background-color: #02041C;
tailwind
bg-[hsl(236,85%,6%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(236, 85%, 6%, 0.4);
css variable
--color-primary: hsl(236, 85%, 6%);
Related Colors
Use Cases for Very Dark Blue
Frequently Asked Questions
What are all the color codes for HSL(236, 85%, 6%)?
HEX: #02041C | RGB: rgb(2, 4, 28) | CMYK: 93%, 86%, 0%, 89% | HSV: 235°, 93%, 11%. Copy any format from the conversion table above.
What colors go well with #02041C?
The complementary color is HSL(56, 85%, 6%). For a triadic harmony, use hues 236°, 356°, and 116°. For analogous combinations, try hues 206° and 266°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(236, 85%, 6%) in CSS?
As HSL: color: hsl(236, 85%, 6%); — As HEX: color: #02041C; — As RGB: color: rgb(2, 4, 28); — Tailwind CSS: bg-[hsl(236,85%,6%)] — CSS variable: --color-primary: hsl(236, 85%, 6%);