OKLCH to HEX: #0084D1
Also known as: Tailwind sky-600
Result
oklch(0.59335 0.15051 245.368) → #0084D1
Values are shown at full precision, so converting back gives exactly #0084d1. 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.59335 0.15051 245.368)
2. OKLCH → Oklab
a = C·cos H = -0.06273 b = C·sin H = -0.13681
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.538962 m′ = L − 0.1056·a − 0.0639·b = 0.608708 s′ = L − 0.0895·a − 1.2915·b = 0.775657
4. cube
l = 0.538962³ = 0.156558 m = 0.608708³ = 0.225542 s = 0.775657³ = 0.466669
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.000006 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.230742 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.637583
6. linear → sRGB, × 255
R = 0.00007 × 255 = 0.02 → 0 G = 0.51765 × 255 = 132.00 → 132 B = 0.81960 × 255 = 209.00 → 209
7. RGB → HEX
#0084D1
All formats
- HEX
- #0084d1
- RGB
- rgb(0 132 209)
- RGB (legacy)
- rgb(0, 132, 209)
- HSL
- hsl(202.11 100.00% 40.98%) → hsl(202 100% 41%)
- HWB
- hwb(202 0% 18%)
- OKLCH
- oklch(0.593 0.151 245.4) · oklch(59.3% 0.151 245.4)
- OKLab
- oklab(0.593 -0.063 -0.137)
- Lab (D50)
- lab(52.29 -8.57 -48.94)
- LCH (D50)
- lch(52.29 49.69 260.07)
- Display P3
- color(display-p3 0.2237 0.5096 0.7961)
- Linear sRGB
- color(srgb-linear 0.0000 0.2307 0.6376)
Gamut: sRGB and Display P3
#0084D1 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.151 and Display P3 reaches 0.196; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #0084d1;
color: rgb(0 132 209);
color: hsl(202 100% 41%);
color: oklch(0.593 0.151 245.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.593 0.151 245.4);
}
/* arbitrary values */
class="text-[#0084d1] bg-[oklch(0.593_0.151_245.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2237 0.5096 0.7961); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #0084d1 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 sky-600#0284C7
- steelblue#4682B4
- cyan-600#0092B8
- v3 blue-500#3B82F6
- v3 cyan-600#0891B2
- dodgerblue#1E90FF
- blue-500#2B7FFF
- royalblue#4169E1
Lighter and darker, same hue and chroma
- #2997E5 · oklch(0.653 0.151 245.4) · ΔL +0.06
- #0071BD · oklch(0.533 0.151 245.4) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?