HSL(279, 20%, 9%)
Very Dark Indigo — Indigo color
Adjust Color
Color Information
Color Name
Very Dark Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(279,20%,9%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(279, 20%, 9%) | color: hsl(279, 20%, 9%) | |
| HEX | #18121C | color: #18121C | |
| RGB | rgb(24, 18, 28) | color: rgb(24, 18, 28) | |
| CMYK | cmyk(14%, 36%, 0%, 89%) | — | |
| HSV | hsv(276, 36%, 11%) | — | |
| HWB | hwb(276 7% 89%) | color: hwb(276 7% 89%) | |
| OKLCH | oklch(0.1945 0.0217 311.52) | color: oklch(0.1945 0.0217 311.52) | |
| Lab | lab(6.42 5.21 -5.77) | color: lab(6.42 5.21 -5.77) | |
| LCH | lch(6.42 7.77 312.08) | color: lch(6.42 7.77 312.08) |
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)
#15151A — rgb(21, 21, 26)
Deuteranopia (Green-blind)
#161619 — rgb(22, 22, 25)
Tritanopia (Blue-blind)
#181817 — rgb(24, 24, 23)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(279, 20%, 9%);
text
color: hsl(279, 20%, 9%);
border
border: 2px solid hsl(279, 20%, 9%);
gradient light
background: linear-gradient(to right, hsl(279, 20%, 29%), hsl(279, 20%, 9%));
gradient dark
background: linear-gradient(to right, hsl(279, 20%, 9%), hsl(279, 20%, 0%))
hex
background-color: #18121C;
tailwind
bg-[hsl(279,20%,9%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(279, 20%, 9%, 0.4);
css variable
--color-primary: hsl(279, 20%, 9%);
Related Colors
Use Cases for Very Dark Indigo
Frequently Asked Questions
What are all the color codes for HSL(279, 20%, 9%)?
HEX: #18121C | RGB: rgb(24, 18, 28) | CMYK: 14%, 36%, 0%, 89% | HSV: 276°, 36%, 11%. Copy any format from the conversion table above.
What colors go well with #18121C?
The complementary color is HSL(99, 20%, 9%). For a triadic harmony, use hues 279°, 39°, and 159°. For analogous combinations, try hues 249° and 309°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(279, 20%, 9%) in CSS?
As HSL: color: hsl(279, 20%, 9%); — As HEX: color: #18121C; — As RGB: color: rgb(24, 18, 28); — Tailwind CSS: bg-[hsl(279,20%,9%)] — CSS variable: --color-primary: hsl(279, 20%, 9%);