HSL(312, 58%, 7%)
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(312,58%,7%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(312, 58%, 7%) | color: hsl(312, 58%, 7%) | |
| HEX | #1C0718 | color: #1C0718 | |
| RGB | rgb(28, 7, 24) | color: rgb(28, 7, 24) | |
| CMYK | cmyk(0%, 75%, 14%, 89%) | — | |
| HSV | hsv(311, 75%, 11%) | — | |
| HWB | hwb(311 3% 89%) | color: hwb(311 3% 89%) | |
| OKLCH | oklch(0.173 0.0471 335.16) | color: oklch(0.173 0.0471 335.16) | |
| Lab | lab(4.2 11.39 -5.86) | color: lab(4.2 11.39 -5.86) | |
| LCH | lch(4.2 12.81 332.77) | color: lch(4.2 12.81 332.77) |
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)
#131314 — rgb(19, 19, 20)
Deuteranopia (Green-blind)
#141613 — rgb(20, 22, 19)
Tritanopia (Blue-blind)
#1B1110 — rgb(27, 17, 16)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(312, 58%, 7%);
text
color: hsl(312, 58%, 7%);
border
border: 2px solid hsl(312, 58%, 7%);
gradient light
background: linear-gradient(to right, hsl(312, 58%, 27%), hsl(312, 58%, 7%));
gradient dark
background: linear-gradient(to right, hsl(312, 58%, 7%), hsl(312, 58%, 0%))
hex
background-color: #1C0718;
tailwind
bg-[hsl(312,58%,7%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(312, 58%, 7%, 0.4);
css variable
--color-primary: hsl(312, 58%, 7%);
Related Colors
Use Cases for Very Dark Purple
Frequently Asked Questions
What are all the color codes for HSL(312, 58%, 7%)?
HEX: #1C0718 | RGB: rgb(28, 7, 24) | CMYK: 0%, 75%, 14%, 89% | HSV: 311°, 75%, 11%. Copy any format from the conversion table above.
What colors go well with #1C0718?
The complementary color is HSL(132, 58%, 7%). For a triadic harmony, use hues 312°, 72°, and 192°. For analogous combinations, try hues 282° and 342°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(312, 58%, 7%) in CSS?
As HSL: color: hsl(312, 58%, 7%); — As HEX: color: #1C0718; — As RGB: color: rgb(28, 7, 24); — Tailwind CSS: bg-[hsl(312,58%,7%)] — CSS variable: --color-primary: hsl(312, 58%, 7%);