HSL to HEX: #2563EB
Also known as: Tailwind v3 blue-600
Result
hsl(221.21 83.19% 53.33%) → #2563EB
Values are shown at full precision, so converting back gives exactly #2563eb. 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 = 221.21°, S = 83.19%, L = 53.33%
2. C
C = (1 − |2L − 1|) × S = 0.77650
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.24317 (H / 60° = 3.6868, sector 3)
4. m
m = L − C / 2 = 0.14505
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.24317, 0.77650) R = round((0.00000 + 0.14505) × 255) = 37 G = round((0.24317 + 0.14505) × 255) = 99 B = round((0.77650 + 0.14505) × 255) = 235
6. RGB → HEX
#2563EB
All formats
- HEX
- #2563eb
- RGB
- rgb(37 99 235)
- RGB (legacy)
- rgb(37, 99, 235)
- HSL
- hsl(221.21 83.19% 53.33%) → hsl(221 83% 53%)
- HWB
- hwb(221 15% 8%)
- OKLCH
- oklch(0.546 0.215 262.9) · oklch(54.6% 0.215 262.9)
- OKLab
- oklab(0.546 -0.027 -0.214)
- Lab (D50)
- lab(44.79 21.05 -75.60)
- LCH (D50)
- lch(44.79 78.47 285.56)
- Display P3
- color(display-p3 0.2132 0.3830 0.8890)
- Linear sRGB
- color(srgb-linear 0.0185 0.1248 0.8308)
Gamut: sRGB and Display P3
#2563EB is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.251 and Display P3 reaches 0.269; this color uses 86% of the sRGB chroma available.
CSS snippets
.element {
color: #2563eb;
color: rgb(37 99 235);
color: hsl(221 83% 53%);
color: oklch(0.546 0.215 262.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.546 0.215 262.9);
}
/* arbitrary values */
class="text-[#2563eb] bg-[oklch(0.546_0.215_262.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2132 0.3830 0.8890); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #2563eb calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- blue-600#155DFC
- royalblue#4169E1
- v3 blue-700#1D4ED8
- blue-700#1447E6
- v3 indigo-500#6366F1
- v3 indigo-600#4F46E5
- indigo-500#615FFF
- blue-500#2B7FFF
Lighter and darker, same hue and chroma
- #3777FF · oklch(0.606 0.215 262.9) · ΔL +0.06
- #124FD6 · oklch(0.486 0.215 262.9) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?