HEX to HSL: #082F49
Also known as: Tailwind v3 sky-950
Result
#082F49 → hsl(204 80% 16%)
Values are shown at full precision, so converting back gives exactly #082f49. 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.0314 G = 0.1843 B = 0.2863
2. max, min, Δ
max = 0.2863 min = 0.0314 Δ = max − min = 0.2549
3. L
L = (max + min) / 2 = 0.1588 = 15.88%
4. S
S = Δ / (1 − |2L − 1|) = 0.8025 = 80.25%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.0314 − 0.1843) / 0.2549 + 4) = 204.00°
6. HSL
hsl(204.00 80.25% 15.88%)
All formats
- HEX
- #082f49
- RGB
- rgb(8 47 73)
- RGB (legacy)
- rgb(8, 47, 73)
- HSL
- hsl(204.00 80.25% 15.88%) → hsl(204 80% 16%)
- HWB
- hwb(204 3% 71%)
- OKLCH
- oklch(0.293 0.063 243.2) · oklch(29.3% 0.063 243.2)
- OKLab
- oklab(0.293 -0.029 -0.056)
- Lab (D50)
- lab(17.90 -5.30 -20.30)
- LCH (D50)
- lch(17.90 20.98 255.36)
- Display P3
- color(display-p3 0.0788 0.1813 0.2779)
- Linear sRGB
- color(srgb-linear 0.0024 0.0284 0.0666)
Gamut: sRGB and Display P3
#082F49 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.093; this color uses 89% of the sRGB chroma available.
CSS snippets
.element {
color: #082f49;
color: rgb(8 47 73);
color: hsl(204 80% 16%);
color: oklch(0.293 0.063 243.2);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.293 0.063 243.2);
}
/* arbitrary values */
class="text-[#082f49] bg-[oklch(0.293_0.063_243.2)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.0788 0.1813 0.2779); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #082f49 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- sky-950#052F4A
- 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
- #1A3F5A · oklch(0.353 0.063 243.2) · ΔL +0.06
- #002039 · oklch(0.233 0.063 243.2) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?