HSL(255, 40%, 9%)
Very Dark Indigo — Indigo color
Adjust Color
Color Information
Color Name
Very Dark Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(255,40%,9%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(255, 40%, 9%) | color: hsl(255, 40%, 9%) | |
| HEX | #120E20 | color: #120E20 | |
| RGB | rgb(18, 14, 32) | color: rgb(18, 14, 32) | |
| CMYK | cmyk(44%, 56%, 0%, 87%) | — | |
| HSV | hsv(253, 56%, 13%) | — | |
| HWB | hwb(253 6% 87%) | color: hwb(253 6% 87%) | |
| OKLCH | oklch(0.1792 0.0365 292.54) | color: oklch(0.1792 0.0365 292.54) | |
| Lab | lab(4.94 6.03 -11.16) | color: lab(4.94 6.03 -11.16) | |
| LCH | lch(4.94 12.68 298.38) | color: lch(4.94 12.68 298.38) |
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)
#10101C — rgb(16, 16, 28)
Deuteranopia (Green-blind)
#11111B — rgb(17, 17, 27)
Tritanopia (Blue-blind)
#121817 — rgb(18, 24, 23)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(255, 40%, 9%);
text
color: hsl(255, 40%, 9%);
border
border: 2px solid hsl(255, 40%, 9%);
gradient light
background: linear-gradient(to right, hsl(255, 40%, 29%), hsl(255, 40%, 9%));
gradient dark
background: linear-gradient(to right, hsl(255, 40%, 9%), hsl(255, 40%, 0%))
hex
background-color: #120E20;
tailwind
bg-[hsl(255,40%,9%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(255, 40%, 9%, 0.4);
css variable
--color-primary: hsl(255, 40%, 9%);
Related Colors
Use Cases for Very Dark Indigo
Frequently Asked Questions
What are all the color codes for HSL(255, 40%, 9%)?
HEX: #120E20 | RGB: rgb(18, 14, 32) | CMYK: 44%, 56%, 0%, 87% | HSV: 253°, 56%, 13%. Copy any format from the conversion table above.
What colors go well with #120E20?
The complementary color is HSL(75, 40%, 9%). For a triadic harmony, use hues 255°, 15°, and 135°. For analogous combinations, try hues 225° and 285°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(255, 40%, 9%) in CSS?
As HSL: color: hsl(255, 40%, 9%); — As HEX: color: #120E20; — As RGB: color: rgb(18, 14, 32); — Tailwind CSS: bg-[hsl(255,40%,9%)] — CSS variable: --color-primary: hsl(255, 40%, 9%);