OKLCH to HEX: #082F49
Also known as: Tailwind v3 sky-950
Result
oklch(0.29346 0.06324 243.157) → #082F49
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. input
oklch(0.29346 0.06324 243.157)
2. OKLCH → Oklab
a = C·cos H = -0.02856 b = C·sin H = -0.05643
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.269965 m′ = L − 0.1056·a − 0.0639·b = 0.300077 s′ = L − 0.0895·a − 1.2915·b = 0.368888
4. cube
l = 0.269965³ = 0.019675 m = 0.300077³ = 0.027021 s = 0.368888³ = 0.050198
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.002428 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.028427 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.066629
6. linear → sRGB, × 255
R = 0.03138 × 255 = 8.00 → 8 G = 0.18432 × 255 = 47.00 → 47 B = 0.28628 × 255 = 73.00 → 73
7. RGB → HEX
#082F49
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?