HSL(305, 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(305,40%,8%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(305, 40%, 8%) | color: hsl(305, 40%, 8%) | |
| HEX | #1D0C1B | color: #1D0C1B | |
| RGB | rgb(29, 12, 27) | color: rgb(29, 12, 27) | |
| CMYK | cmyk(0%, 59%, 7%, 89%) | — | |
| HSV | hsv(307, 59%, 11%) | — | |
| HWB | hwb(307 5% 89%) | color: hwb(307 5% 89%) | |
| OKLCH | oklch(0.187 0.0394 331.42) | color: oklch(0.187 0.0394 331.42) | |
| Lab | lab(5.45 10.75 -6.37) | color: lab(5.45 10.75 -6.37) | |
| LCH | lch(5.45 12.5 329.35) | color: lch(5.45 12.5 329.35) |
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)
#171817 — rgb(23, 24, 23)
Tritanopia (Blue-blind)
#1C1514 — rgb(28, 21, 20)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(305, 40%, 8%);
text
color: hsl(305, 40%, 8%);
border
border: 2px solid hsl(305, 40%, 8%);
gradient light
background: linear-gradient(to right, hsl(305, 40%, 28%), hsl(305, 40%, 8%));
gradient dark
background: linear-gradient(to right, hsl(305, 40%, 8%), hsl(305, 40%, 0%))
hex
background-color: #1D0C1B;
tailwind
bg-[hsl(305,40%,8%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(305, 40%, 8%, 0.4);
css variable
--color-primary: hsl(305, 40%, 8%);
Related Colors
Use Cases for Very Dark Purple
Frequently Asked Questions
What are all the color codes for HSL(305, 40%, 8%)?
HEX: #1D0C1B | RGB: rgb(29, 12, 27) | CMYK: 0%, 59%, 7%, 89% | HSV: 307°, 59%, 11%. Copy any format from the conversion table above.
What colors go well with #1D0C1B?
The complementary color is HSL(125, 40%, 8%). For a triadic harmony, use hues 305°, 65°, and 185°. For analogous combinations, try hues 275° and 335°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(305, 40%, 8%) in CSS?
As HSL: color: hsl(305, 40%, 8%); — As HEX: color: #1D0C1B; — As RGB: color: rgb(29, 12, 27); — Tailwind CSS: bg-[hsl(305,40%,8%)] — CSS variable: --color-primary: hsl(305, 40%, 8%);