HEX naar HSL: #1E293B
Ook bekend als: Tailwind v3 slate-800
Resultaat
#1E293B → hsl(217 33% 17%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #1e293b. De afgeronde vorm plak je gewoonlijk in CSS.
Stap-voor-stap berekening
Elk getal wordt uit de invoer berekend, er wordt niets opgezocht.
1. RGB ÷ 255
R = 0.1176 G = 0.1608 B = 0.2314
2. max, min, Δ
max = 0.2314 min = 0.1176 Δ = max − min = 0.1137
3. L
L = (max + min) / 2 = 0.1745 = 17.45%
4. S
S = Δ / (1 − |2L − 1|) = 0.3258 = 32.58%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.1176 − 0.1608) / 0.1137 + 4) = 217.24°
6. HSL
hsl(217.24 32.58% 17.45%)
Alle formaten
- 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 en Display P3
#1E293B is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.114 en Display P3 van 0.144; deze kleur gebruikt 32% van de beschikbare sRGB-chroma.
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); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- 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
Lichter en donkerder, dezelfde tint en chroma
- #2D384B · oklch(0.340 0.037 260.0) · ΔL +0.06
- #101B2C · oklch(0.220 0.037 260.0) · ΔL −0.06