HSL to HEX: #1E90FF

Also known as: CSS dodgerblue

Result

hsl(209.60 100.00% 55.88%) → #1E90FF

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. 1. input

    H = 209.60°, S = 100.00%, L = 55.88%
  2. 2. C

    C = (1 − |2L − 1|) × S = 0.88240
  3. 3. X

    X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.44708   (H / 60° = 3.4933, sector 3)
  4. 4. m

    m = L − C / 2 = 0.11760
  5. 5. (R′, G′, B′) + m

    (R′, G′, B′) = (0.00000, 0.44708, 0.88240)
    R = round((0.00000 + 0.11760) × 255) = 30
    G = round((0.44708 + 0.11760) × 255) = 144
    B = round((0.88240 + 0.11760) × 255) = 255
  6. 6. RGB → HEX

    #1E90FF

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).

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

All converters →

Guides: What is OKLCH?