HSL(2, 40%, 5%)
Very Dark Red — Red color
Adjust Color
Color Information
Color Name
Very Dark Red
Color Family
Red
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(2,40%,5%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(2, 40%, 5%) | color: hsl(2, 40%, 5%) | |
| HEX | #120808 | color: #120808 | |
| RGB | rgb(18, 8, 8) | color: rgb(18, 8, 8) | |
| CMYK | cmyk(0%, 56%, 56%, 93%) | — | |
| HSV | hsv(0, 56%, 7%) | — | |
| HWB | hwb(0 3% 93%) | color: hwb(0 3% 93%) | |
| OKLCH | oklch(0.1495 0.0183 19.45) | color: oklch(0.1495 0.0183 19.45) | |
| Lab | lab(2.89 3.12 1.1) | color: lab(2.89 3.12 1.1) | |
| LCH | lch(2.89 3.31 19.42) | color: lch(2.89 3.31 19.42) |
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)
#0E0E08 — rgb(14, 14, 8)
Deuteranopia (Green-blind)
#0E0F08 — rgb(14, 15, 8)
Tritanopia (Blue-blind)
#120808 — rgb(18, 8, 8)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(2, 40%, 5%);
text
color: hsl(2, 40%, 5%);
border
border: 2px solid hsl(2, 40%, 5%);
gradient light
background: linear-gradient(to right, hsl(2, 40%, 25%), hsl(2, 40%, 5%));
gradient dark
background: linear-gradient(to right, hsl(2, 40%, 5%), hsl(2, 40%, 0%))
hex
background-color: #120808;
tailwind
bg-[hsl(2,40%,5%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(2, 40%, 5%, 0.4);
css variable
--color-primary: hsl(2, 40%, 5%);
Related Colors
Use Cases for Very Dark Red
Frequently Asked Questions
What are all the color codes for HSL(2, 40%, 5%)?
HEX: #120808 | RGB: rgb(18, 8, 8) | CMYK: 0%, 56%, 56%, 93% | HSV: 0°, 56%, 7%. Copy any format from the conversion table above.
What colors go well with #120808?
The complementary color is HSL(182, 40%, 5%). For a triadic harmony, use hues 2°, 122°, and 242°. For analogous combinations, try hues 332° and 32°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(2, 40%, 5%) in CSS?
As HSL: color: hsl(2, 40%, 5%); — As HEX: color: #120808; — As RGB: color: rgb(18, 8, 8); — Tailwind CSS: bg-[hsl(2,40%,5%)] — CSS variable: --color-primary: hsl(2, 40%, 5%);