HSL(308, 40%, 8%)
Very Dark Purple — Purple color
Adjust Color
Color Information
Color Name
Very Dark Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(308,40%,8%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(308, 40%, 8%) | color: hsl(308, 40%, 8%) | |
| HEX | #1D0C1A | color: #1D0C1A | |
| RGB | rgb(29, 12, 26) | color: rgb(29, 12, 26) | |
| CMYK | cmyk(0%, 59%, 10%, 89%) | — | |
| HSV | hsv(311, 59%, 11%) | — | |
| HWB | hwb(311 5% 89%) | color: hwb(311 5% 89%) | |
| OKLCH | oklch(0.1864 0.0382 333.79) | color: oklch(0.1864 0.0382 333.79) | |
| Lab | lab(5.41 10.47 -5.65) | color: lab(5.41 10.47 -5.65) | |
| LCH | lch(5.41 11.9 331.65) | color: lch(5.41 11.9 331.65) |
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)
#161517 — rgb(22, 21, 23)
Deuteranopia (Green-blind)
#171816 — rgb(23, 24, 22)
Tritanopia (Blue-blind)
#1C1413 — rgb(28, 20, 19)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(308, 40%, 8%);
text
color: hsl(308, 40%, 8%);
border
border: 2px solid hsl(308, 40%, 8%);
gradient light
background: linear-gradient(to right, hsl(308, 40%, 28%), hsl(308, 40%, 8%));
gradient dark
background: linear-gradient(to right, hsl(308, 40%, 8%), hsl(308, 40%, 0%))
hex
background-color: #1D0C1A;
tailwind
bg-[hsl(308,40%,8%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(308, 40%, 8%, 0.4);
css variable
--color-primary: hsl(308, 40%, 8%);
Related Colors
Use Cases for Very Dark Purple
Frequently Asked Questions
What are all the color codes for HSL(308, 40%, 8%)?
HEX: #1D0C1A | RGB: rgb(29, 12, 26) | CMYK: 0%, 59%, 10%, 89% | HSV: 311°, 59%, 11%. Copy any format from the conversion table above.
What colors go well with #1D0C1A?
The complementary color is HSL(128, 40%, 8%). For a triadic harmony, use hues 308°, 68°, and 188°. For analogous combinations, try hues 278° and 338°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(308, 40%, 8%) in CSS?
As HSL: color: hsl(308, 40%, 8%); — As HEX: color: #1D0C1A; — As RGB: color: rgb(29, 12, 26); — Tailwind CSS: bg-[hsl(308,40%,8%)] — CSS variable: --color-primary: hsl(308, 40%, 8%);