HSL to HEX: #4682B4

Also known as: CSS steelblue

Result

hsl(207.27 44.00% 49.02%) → #4682B4

Values are shown at full precision, so converting back gives exactly #4682b4. 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 = 207.27°, S = 44.00%, L = 49.02%
  2. 2. C

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

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

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

    (R′, G′, B′) = (0.00000, 0.23532, 0.43138)
    R = round((0.00000 + 0.27451) × 255) = 70
    G = round((0.23532 + 0.27451) × 255) = 130
    B = round((0.43138 + 0.27451) × 255) = 180
  6. 6. RGB → HEX

    #4682B4

All formats

HEX
#4682b4
RGB
rgb(70 130 180)
RGB (legacy)
rgb(70, 130, 180)
HSL
hsl(207.27 44.00% 49.02%) → hsl(207 44% 49%)
HWB
hwb(207 27% 29%)
OKLCH
oklch(0.588 0.099 245.7) · oklch(58.8% 0.099 245.7)
OKLab
oklab(0.588 -0.041 -0.091)
Lab (D50)
lab(51.99 -8.36 -32.83)
LCH (D50)
lch(51.99 33.88 255.71)
Display P3
color(display-p3 0.3318 0.5041 0.6892)
Linear sRGB
color(srgb-linear 0.0612 0.2232 0.4564)

Gamut: sRGB and Display P3

#4682B4 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.150 and Display P3 reaches 0.195; this color uses 66% of the sRGB chroma available.

CSS snippets

.element {
  color: #4682b4;
  color: rgb(70 130 180);
  color: hsl(207 44% 49%);
  color: oklch(0.588 0.099 245.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.588 0.099 245.7);
}
/* arbitrary values */
class="text-[#4682b4] bg-[oklch(0.588_0.099_245.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.3318 0.5041 0.6892); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #4682b4 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

  • #5894C7 · oklch(0.648 0.099 245.7) · ΔL +0.06
  • #3470A1 · oklch(0.528 0.099 245.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?