HEX to RGB: #082F49

Also known as: Tailwind v3 sky-950

Result

#082F49 → rgb(8 47 73)

Values are shown at full precision, so converting back gives exactly #082f49. 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. HEX → pairs

    #082F49 → 08 | 2F | 49
  2. 2. base 16 → base 10

    R = 08₁₆ = 0×16 + 8 = 8
    G = 2F₁₆ = 2×16 + 15 = 47
    B = 49₁₆ = 4×16 + 9 = 73
  3. 3. RGB

    rgb(8 47 73)

All formats

HEX
#082f49
RGB
rgb(8 47 73)
RGB (legacy)
rgb(8, 47, 73)
HSL
hsl(204.00 80.25% 15.88%) → hsl(204 80% 16%)
HWB
hwb(204 3% 71%)
OKLCH
oklch(0.293 0.063 243.2) · oklch(29.3% 0.063 243.2)
OKLab
oklab(0.293 -0.029 -0.056)
Lab (D50)
lab(17.90 -5.30 -20.30)
LCH (D50)
lch(17.90 20.98 255.36)
Display P3
color(display-p3 0.0788 0.1813 0.2779)
Linear sRGB
color(srgb-linear 0.0024 0.0284 0.0666)

Gamut: sRGB and Display P3

#082F49 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.071 and Display P3 reaches 0.093; this color uses 89% of the sRGB chroma available.

CSS snippets

.element {
  color: #082f49;
  color: rgb(8 47 73);
  color: hsl(204 80% 16%);
  color: oklch(0.293 0.063 243.2);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.293 0.063 243.2);
}
/* arbitrary values */
class="text-[#082f49] bg-[oklch(0.293_0.063_243.2)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.0788 0.1813 0.2779); }
}

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

  • #1A3F5A · oklch(0.353 0.063 243.2) · ΔL +0.06
  • #002039 · oklch(0.233 0.063 243.2) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?