HSL to HEX: #4338CA
Also known as: Tailwind v3 indigo-700
Result
hsl(244.52 57.94% 50.59%) → #4338CA
Values are shown at full precision, so converting back gives exactly #4338ca. 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 = 244.52°, S = 57.94%, L = 50.59%
2. C
C = (1 − |2L − 1|) × S = 0.57256
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.04313 (H / 60° = 4.0753, sector 4)
4. m
m = L − C / 2 = 0.21962
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.04313, 0.00000, 0.57256) R = round((0.04313 + 0.21962) × 255) = 67 G = round((0.00000 + 0.21962) × 255) = 56 B = round((0.57256 + 0.21962) × 255) = 202
6. RGB → HEX
#4338CA
All formats
- HEX
- #4338ca
- RGB
- rgb(67 56 202)
- RGB (legacy)
- rgb(67, 56, 202)
- HSL
- hsl(244.52 57.94% 50.59%) → hsl(245 58% 51%)
- HWB
- hwb(245 22% 21%)
- OKLCH
- oklch(0.457 0.215 277.0) · oklch(45.7% 0.215 277.0)
- OKLab
- oklab(0.457 0.026 -0.213)
- Lab (D50)
- lab(33.27 40.13 -75.54)
- LCH (D50)
- lch(33.27 85.54 297.98)
- Display P3
- color(display-p3 0.2557 0.2212 0.7621)
- Linear sRGB
- color(srgb-linear 0.0561 0.0395 0.5906)
Gamut: sRGB and Display P3
#4338CA is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.283 and Display P3 reaches 0.286; this color uses 76% of the sRGB chroma available.
CSS snippets
.element {
color: #4338ca;
color: rgb(67 56 202);
color: hsl(245 58% 51%);
color: oklch(0.457 0.215 277.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.457 0.215 277.0);
}
/* arbitrary values */
class="text-[#4338ca] bg-[oklch(0.457_0.215_277.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2557 0.2212 0.7621); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #4338ca calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- indigo-700#432DD7
- blue-800#193CB8
- v3 indigo-600#4F46E5
- v3 blue-700#1D4ED8
- v3 blue-800#1E40AF
- indigo-800#372AAC
- v3 violet-800#5B21B6
- blue-700#1447E6
Lighter and darker, same hue and chroma
- #514DDF · oklch(0.517 0.215 277.0) · ΔL +0.06
- #3620B5 · oklch(0.397 0.215 277.0) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?