HSL to HEX: #1E293B
Also known as: Tailwind v3 slate-800
Result
hsl(217.24 32.58% 17.45%) → #1E293B
Values are shown at full precision, so converting back gives exactly #1e293b. 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 = 217.24°, S = 32.58%, L = 17.45%
2. C
C = (1 − |2L − 1|) × S = 0.11370
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.04313 (H / 60° = 3.6207, sector 3)
4. m
m = L − C / 2 = 0.11765
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.04313, 0.11370) R = round((0.00000 + 0.11765) × 255) = 30 G = round((0.04313 + 0.11765) × 255) = 41 B = round((0.11370 + 0.11765) × 255) = 59
6. RGB → HEX
#1E293B
All formats
- HEX
- #1e293b
- RGB
- rgb(30 41 59)
- RGB (legacy)
- rgb(30, 41, 59)
- HSL
- hsl(217.24 32.58% 17.45%) → hsl(217 33% 17%)
- HWB
- hwb(217 12% 77%)
- OKLCH
- oklch(0.280 0.037 260.0) · oklch(28.0% 0.037 260.0)
- OKLab
- oklab(0.279 -0.006 -0.036)
- Lab (D50)
- lab(16.22 -0.48 -13.23)
- LCH (D50)
- lch(16.22 13.23 267.94)
- Display P3
- color(display-p3 0.1264 0.1595 0.2256)
- Linear sRGB
- color(srgb-linear 0.0130 0.0222 0.0437)
Gamut: sRGB and Display P3
#1E293B is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.114 and Display P3 reaches 0.144; this color uses 32% of the sRGB chroma available.
CSS snippets
.element {
color: #1e293b;
color: rgb(30 41 59);
color: hsl(217 33% 17%);
color: oklch(0.280 0.037 260.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.280 0.037 260.0);
}
/* arbitrary values */
class="text-[#1e293b] bg-[oklch(0.280_0.037_260.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1264 0.1595 0.2256); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #1e293b calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- gray-800#1E2939
- slate-800#1D293D
- v3 gray-800#1F2937
- mist-800#22292B
- zinc-800#27272A
- v3 sky-950#082F49
- sky-950#052F4A
- mauve-800#2A212C
Lighter and darker, same hue and chroma
- #2D384B · oklch(0.340 0.037 260.0) · ΔL +0.06
- #101B2C · oklch(0.220 0.037 260.0) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?