HSL to HEX: #2A212C
Also known as: Tailwind mauve-800
Result
hsl(289.09 14.29% 15.10%) → #2A212C
Values are shown at full precision, so converting back gives exactly #2a212c. The rounded form is what you normally paste into CSS.
Step-by-step math
Every number below is computed from the input, nothing is looked up.
1. input
H = 289.09°, S = 14.29%, L = 15.10%
2. C
C = (1 − |2L − 1|) × S = 0.04316
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.03531 (H / 60° = 4.8182, sector 4)
4. m
m = L − C / 2 = 0.12942
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.03531, 0.00000, 0.04316) R = round((0.03531 + 0.12942) × 255) = 42 G = round((0.00000 + 0.12942) × 255) = 33 B = round((0.04316 + 0.12942) × 255) = 44
6. RGB → HEX
#2A212C
All formats
- HEX
- #2a212c
- RGB
- rgb(42 33 44)
- RGB (legacy)
- rgb(42, 33, 44)
- HSL
- hsl(289.09 14.29% 15.10%) → hsl(289 14% 15%)
- HWB
- hwb(289 13% 83%)
- OKLCH
- oklch(0.263 0.024 320.1) · oklch(26.3% 0.024 320.1)
- OKLab
- oklab(0.263 0.018 -0.015)
- Lab (D50)
- lab(14.16 6.34 -5.67)
- LCH (D50)
- lch(14.16 8.51 318.22)
- Display P3
- color(display-p3 0.1590 0.1307 0.1697)
- Linear sRGB
- color(srgb-linear 0.0232 0.0152 0.0252)
Gamut: sRGB and Display P3
#2A212C is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.126 and Display P3 reaches 0.136; this color uses 19% of the sRGB chroma available.
CSS snippets
.element {
color: #2a212c;
color: rgb(42 33 44);
color: hsl(289 14% 15%);
color: oklch(0.263 0.024 320.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.263 0.024 320.1);
}
/* arbitrary values */
class="text-[#2a212c] bg-[oklch(0.263_0.024_320.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1590 0.1307 0.1697); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #2a212c calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- zinc-800#27272A
- stone-800#292524
- taupe-800#2B2422
- neutral-800#262626
- mist-800#22292B
- v3 gray-800#1F2937
- gray-800#1E2939
- v3 slate-800#1E293B
Lighter and darker, same hue and chroma
- #39303B · oklch(0.323 0.024 320.1) · ΔL +0.06
- #1C131D · oklch(0.203 0.024 320.1) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?