HSL(310, 23%, 16%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔴 Warm
Temperature
6500K
CSS Class
bg-[hsl(310,23%,16%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(310, 23%, 16%) | color: hsl(310, 23%, 16%) | |
| HEX | #321F2F | color: #321F2F | |
| RGB | rgb(50, 31, 47) | color: rgb(50, 31, 47) | |
| CMYK | cmyk(0%, 38%, 6%, 80%) | — | |
| HSV | hsv(309, 38%, 20%) | — | |
| HWB | hwb(309 12% 80%) | color: hwb(309 12% 80%) | |
| OKLCH | oklch(0.27 0.0399 332.34) | color: oklch(0.27 0.0399 332.34) | |
| Lab | lab(14.75 12.45 -6.88) | color: lab(14.75 12.45 -6.88) | |
| LCH | lch(14.75 14.22 331.07) | color: lch(14.75 14.22 331.07) |
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)
#2A2A2B — rgb(42, 42, 43)
Deuteranopia (Green-blind)
#2B2C2A — rgb(43, 44, 42)
Tritanopia (Blue-blind)
#312827 — rgb(49, 40, 39)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(310, 23%, 16%);
text
color: hsl(310, 23%, 16%);
border
border: 2px solid hsl(310, 23%, 16%);
gradient light
background: linear-gradient(to right, hsl(310, 23%, 36%), hsl(310, 23%, 16%));
gradient dark
background: linear-gradient(to right, hsl(310, 23%, 16%), hsl(310, 23%, 0%))
hex
background-color: #321F2F;
tailwind
bg-[hsl(310,23%,16%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(310, 23%, 16%, 0.4);
css variable
--color-primary: hsl(310, 23%, 16%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(310, 23%, 16%)?
HEX: #321F2F | RGB: rgb(50, 31, 47) | CMYK: 0%, 38%, 6%, 80% | HSV: 309°, 38%, 20%. Copy any format from the conversion table above.
What colors go well with #321F2F?
The complementary color is HSL(130, 23%, 16%). For a triadic harmony, use hues 310°, 70°, and 190°. For analogous combinations, try hues 280° and 340°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(310, 23%, 16%) in CSS?
As HSL: color: hsl(310, 23%, 16%); — As HEX: color: #321F2F; — As RGB: color: rgb(50, 31, 47); — Tailwind CSS: bg-[hsl(310,23%,16%)] — CSS variable: --color-primary: hsl(310, 23%, 16%);