HSL to HEX: #1E3A8A
Also known as: Tailwind v3 blue-900
Result
hsl(224.44 64.29% 32.94%) → #1E3A8A
Values are shown at full precision, so converting back gives exactly #1e3a8a. 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 = 224.44°, S = 64.29%, L = 32.94%
2. C
C = (1 − |2L − 1|) × S = 0.42354
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.10984 (H / 60° = 3.7407, sector 3)
4. m
m = L − C / 2 = 0.11763
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.10984, 0.42354) R = round((0.00000 + 0.11763) × 255) = 30 G = round((0.10984 + 0.11763) × 255) = 58 B = round((0.42354 + 0.11763) × 255) = 138
6. RGB → HEX
#1E3A8A
All formats
- HEX
- #1e3a8a
- RGB
- rgb(30 58 138)
- RGB (legacy)
- rgb(30, 58, 138)
- HSL
- hsl(224.44 64.29% 32.94%) → hsl(224 64% 33%)
- HWB
- hwb(224 12% 46%)
- OKLCH
- oklch(0.379 0.138 265.5) · oklch(37.9% 0.138 265.5)
- OKLab
- oklab(0.379 -0.011 -0.137)
- Lab (D50)
- lab(26.34 13.76 -48.67)
- LCH (D50)
- lch(26.34 50.58 285.79)
- Display P3
- color(display-p3 0.1437 0.2247 0.5217)
- Linear sRGB
- color(srgb-linear 0.0130 0.0423 0.2542)
Gamut: sRGB and Display P3
#1E3A8A is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.259 and Display P3 reaches 0.259; this color uses 53% of the sRGB chroma available.
CSS snippets
.element {
color: #1e3a8a;
color: rgb(30 58 138);
color: hsl(224 64% 33%);
color: oklch(0.379 0.138 265.5);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.379 0.138 265.5);
}
/* arbitrary values */
class="text-[#1e3a8a] bg-[oklch(0.379_0.138_265.5)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1437 0.2247 0.5217); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #1e3a8a calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- blue-900#1C398E
- v3 indigo-900#312E81
- indigo-900#312C85
- v3 indigo-800#3730A3
- darkslateblue#483D8B
- v3 blue-800#1E40AF
- sky-900#024A70
- indigo-800#372AAC
Lighter and darker, same hue and chroma
- #2D4C9D · oklch(0.439 0.138 265.5) · ΔL +0.06
- #102877 · oklch(0.319 0.138 265.5) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?