HSL to HEX: #082F49

Also known as: Tailwind v3 sky-950

Result

hsl(204.00 80.25% 15.88%) → #082F49

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

    H = 204.00°, S = 80.25%, L = 15.88%
  2. 2. C

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

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

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

    (R′, G′, B′) = (0.00000, 0.15292, 0.25487)
    R = round((0.00000 + 0.03136) × 255) = 8
    G = round((0.15292 + 0.03136) × 255) = 47
    B = round((0.25487 + 0.03136) × 255) = 73
  6. 6. RGB → HEX

    #082F49

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?