HEX to HSL: #052F4A
Also known as: Tailwind sky-950
Result
#052F4A → hsl(203 87% 15%)
Values are shown at full precision, so converting back gives exactly #052f4a. 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. RGB ÷ 255
R = 0.0196 G = 0.1843 B = 0.2902
2. max, min, Δ
max = 0.2902 min = 0.0196 Δ = max − min = 0.2706
3. L
L = (max + min) / 2 = 0.1549 = 15.49%
4. S
S = Δ / (1 − |2L − 1|) = 0.8734 = 87.34%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.0196 − 0.1843) / 0.2706 + 4) = 203.48°
6. HSL
hsl(203.48 87.34% 15.49%)
All formats
- HEX
- #052f4a
- RGB
- rgb(5 47 74)
- RGB (legacy)
- rgb(5, 47, 74)
- HSL
- hsl(203.48 87.34% 15.49%) → hsl(203 87% 15%)
- HWB
- hwb(203 2% 71%)
- OKLCH
- oklch(0.293 0.066 242.9) · oklch(29.3% 0.066 242.9)
- OKLab
- oklab(0.293 -0.030 -0.059)
- Lab (D50)
- lab(17.86 -5.41 -21.05)
- LCH (D50)
- lch(17.86 21.74 255.57)
- Display P3
- color(display-p3 0.0727 0.1812 0.2816)
- Linear sRGB
- color(srgb-linear 0.0015 0.0284 0.0685)
Gamut: sRGB and Display P3
#052F4A is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.071 and Display P3 reaches 0.092; this color uses 93% of the sRGB chroma available.
CSS snippets
.element {
color: #052f4a;
color: rgb(5 47 74);
color: hsl(203 87% 15%);
color: oklch(0.293 0.066 242.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.293 0.066 242.9);
}
/* arbitrary values */
class="text-[#052f4a] bg-[oklch(0.293_0.066_242.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.0727 0.1812 0.2816); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #052f4a calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 sky-950#082F49
- cyan-950#053345
- v3 cyan-950#083344
- slate-800#1D293D
- v3 slate-800#1E293B
- gray-800#1E2939
- v3 gray-800#1F2937
- v3 blue-950#172554
Lighter and darker, same hue and chroma
- #183F5B · oklch(0.353 0.066 242.9) · ΔL +0.06
- #00203A · oklch(0.233 0.066 242.9) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?