HEX to OKLCH: #1E90FF
Also known as: CSS dodgerblue
Result
#1E90FF → oklch(0.652 0.190 253.2)
Values are shown at full precision, so converting back gives exactly #1e90ff. 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. sRGB → linear
R: 30/255 = 0.11765 → 0.012983 (((x + 0.055) / 1.055)^2.4) G: 144/255 = 0.56471 → 0.278894 (((x + 0.055) / 1.055)^2.4) B: 255/255 = 1.00000 → 1.000000 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.206378 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.299991 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.709695
3. cube root
l′ = ∛0.206378 = 0.590955 m′ = ∛0.299991 = 0.669426 s′ = ∛0.709695 = 0.891984
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.65201 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.05493 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.18201
5. Oklab → OKLCH
C = √(a² + b²) = 0.19012 H = atan2(b, a) = 253.205° L = 0.65201
6. OKLCH
oklch(0.65201 0.19012 253.205) rounded: oklch(0.652 0.190 253.2)
All formats
- HEX
- #1e90ff
- RGB
- rgb(30 144 255)
- RGB (legacy)
- rgb(30, 144, 255)
- HSL
- hsl(209.60 100.00% 55.88%) → hsl(210 100% 56%)
- HWB
- hwb(210 12% 0%)
- OKLCH
- oklch(0.652 0.190 253.2) · oklch(65.2% 0.190 253.2)
- OKLab
- oklab(0.652 -0.055 -0.182)
- Lab (D50)
- lab(58.36 0.89 -64.78)
- LCH (D50)
- lch(58.36 64.79 270.79)
- Display P3
- color(display-p3 0.2721 0.5565 0.9690)
- Linear sRGB
- color(srgb-linear 0.0130 0.2789 1.0000)
Gamut: sRGB and Display P3
#1E90FF is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.190 and Display P3 reaches 0.205; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #1e90ff;
color: rgb(30 144 255);
color: hsl(210 100% 56%);
color: oklch(0.652 0.190 253.2);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.652 0.190 253.2);
}
/* arbitrary values */
class="text-[#1e90ff] bg-[oklch(0.652_0.190_253.2)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2721 0.5565 0.9690); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #1e90ff calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 blue-500#3B82F6
- blue-500#2B7FFF
- cornflowerblue#6495ED
- blue-400#51A2FF
- sky-500#00A6F4
- v3 sky-500#0EA5E9
- sky-600#0084D1
- v3 blue-400#60A5FA
Lighter and darker, same hue and chroma
- #38A3FF · oklch(0.712 0.190 253.2) · ΔL +0.06
- #007DEA · oklch(0.592 0.190 253.2) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?