HSL(297, 20%, 13%)
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(297,20%,13%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(297, 20%, 13%) | color: hsl(297, 20%, 13%) | |
| HEX | #271B28 | color: #271B28 | |
| RGB | rgb(39, 27, 40) | color: rgb(39, 27, 40) | |
| CMYK | cmyk(2%, 33%, 0%, 84%) | — | |
| HSV | hsv(295, 33%, 16%) | — | |
| HWB | hwb(295 11% 84%) | color: hwb(295 11% 84%) | |
| OKLCH | oklch(0.2427 0.0299 323.89) | color: oklch(0.2427 0.0299 323.89) | |
| Lab | lab(11.75 8.86 -6.52) | color: lab(11.75 8.86 -6.52) | |
| LCH | lch(11.75 11 323.65) | color: lch(11.75 11 323.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)
#222225 — rgb(34, 34, 37)
Deuteranopia (Green-blind)
#232324 — rgb(35, 35, 36)
Tritanopia (Blue-blind)
#262222 — rgb(38, 34, 34)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(297, 20%, 13%);
text
color: hsl(297, 20%, 13%);
border
border: 2px solid hsl(297, 20%, 13%);
gradient light
background: linear-gradient(to right, hsl(297, 20%, 33%), hsl(297, 20%, 13%));
gradient dark
background: linear-gradient(to right, hsl(297, 20%, 13%), hsl(297, 20%, 0%))
hex
background-color: #271B28;
tailwind
bg-[hsl(297,20%,13%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(297, 20%, 13%, 0.4);
css variable
--color-primary: hsl(297, 20%, 13%);
Related Colors
Use Cases for Very Dark Purple
Frequently Asked Questions
What are all the color codes for HSL(297, 20%, 13%)?
HEX: #271B28 | RGB: rgb(39, 27, 40) | CMYK: 2%, 33%, 0%, 84% | HSV: 295°, 33%, 16%. Copy any format from the conversion table above.
What colors go well with #271B28?
The complementary color is HSL(117, 20%, 13%). For a triadic harmony, use hues 297°, 57°, and 177°. For analogous combinations, try hues 267° and 327°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(297, 20%, 13%) in CSS?
As HSL: color: hsl(297, 20%, 13%); — As HEX: color: #271B28; — As RGB: color: rgb(39, 27, 40); — Tailwind CSS: bg-[hsl(297,20%,13%)] — CSS variable: --color-primary: hsl(297, 20%, 13%);