HEX to HSL: #0084D1

Also known as: Tailwind sky-600

Result

#0084D1 → hsl(202 100% 41%)

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. 1. RGB ÷ 255

    R = 0.0000
    G = 0.5176
    B = 0.8196
  2. 2. max, min, Δ

    max = 0.8196
    min = 0.0000
    Δ = max − min = 0.8196
  3. 3. L

    L = (max + min) / 2 = 0.4098 = 40.98%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 1.0000 = 100.00%
  5. 5. H

    max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.0000 − 0.5176) / 0.8196 + 4) = 202.11°
  6. 6. HSL

    hsl(202.11 100.00% 40.98%)

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

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

All converters →

Guides: What is OKLCH?