RGB to HEX: #0084D1

Also known as: Tailwind sky-600

Result

rgb(0 132 209) → #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. 1. base 10 → base 16

    R = 0 = 0×16 + 0 → 00
    G = 132 = 8×16 + 4 → 84
    B = 209 = 13×16 + 1 → D1
  2. 2. pairs → HEX

    00 84 D1 → #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).

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?