HSL(298, 80%, 7%)
Very Dark Purple — Purple color
Adjust Color
Color Information
Color Name
Very Dark Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(298,80%,7%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(298, 80%, 7%) | color: hsl(298, 80%, 7%) | |
| HEX | #1F0420 | color: #1F0420 | |
| RGB | rgb(31, 4, 32) | color: rgb(31, 4, 32) | |
| CMYK | cmyk(3%, 88%, 0%, 87%) | — | |
| HSV | hsv(298, 88%, 13%) | — | |
| HWB | hwb(298 2% 87%) | color: hwb(298 2% 87%) | |
| OKLCH | oklch(0.1776 0.0664 326.5) | color: oklch(0.1776 0.0664 326.5) | |
| Lab | lab(4.36 16.81 -11.91) | color: lab(4.36 16.81 -11.91) | |
| LCH | lch(4.36 20.6 324.68) | color: lch(4.36 20.6 324.68) |
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)
#131319 — rgb(19, 19, 25)
Deuteranopia (Green-blind)
#151718 — rgb(21, 23, 24)
Tritanopia (Blue-blind)
#1E1413 — rgb(30, 20, 19)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(298, 80%, 7%);
text
color: hsl(298, 80%, 7%);
border
border: 2px solid hsl(298, 80%, 7%);
gradient light
background: linear-gradient(to right, hsl(298, 80%, 27%), hsl(298, 80%, 7%));
gradient dark
background: linear-gradient(to right, hsl(298, 80%, 7%), hsl(298, 80%, 0%))
hex
background-color: #1F0420;
tailwind
bg-[hsl(298,80%,7%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(298, 80%, 7%, 0.4);
css variable
--color-primary: hsl(298, 80%, 7%);
Related Colors
Use Cases for Very Dark Purple
Frequently Asked Questions
What are all the color codes for HSL(298, 80%, 7%)?
HEX: #1F0420 | RGB: rgb(31, 4, 32) | CMYK: 3%, 88%, 0%, 87% | HSV: 298°, 88%, 13%. Copy any format from the conversion table above.
What colors go well with #1F0420?
The complementary color is HSL(118, 80%, 7%). For a triadic harmony, use hues 298°, 58°, and 178°. For analogous combinations, try hues 268° and 328°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(298, 80%, 7%) in CSS?
As HSL: color: hsl(298, 80%, 7%); — As HEX: color: #1F0420; — As RGB: color: rgb(31, 4, 32); — Tailwind CSS: bg-[hsl(298,80%,7%)] — CSS variable: --color-primary: hsl(298, 80%, 7%);