OKLCH to HEX: #083344

Also known as: Tailwind v3 cyan-950

Result

oklch(0.30181 0.05407 229.695) → #083344

Values are shown at full precision, so converting back gives exactly #083344. 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

    oklch(0.30181 0.05407 229.695)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.03498
    b = C·sin H = -0.04123
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.279049
    m′ = L − 0.1056·a − 0.0639·b = 0.308135
    s′ = L − 0.0895·a − 1.2915·b = 0.358193
  4. 4. cube

    l = 0.279049³ = 0.021729
    m = 0.308135³ = 0.029257
    s = 0.358193³ = 0.045957
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 0.002427
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.033104
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.057806
  6. 6. linear → sRGB, × 255

    R = 0.03135 × 255 = 7.99 → 8
    G = 0.20000 × 255 = 51.00 → 51
    B = 0.26667 × 255 = 68.00 → 68
  7. 7. RGB → HEX

    #083344

All formats

HEX
#083344
RGB
rgb(8 51 68)
RGB (legacy)
rgb(8, 51, 68)
HSL
hsl(197.00 78.95% 14.90%) → hsl(197 79% 15%)
HWB
hwb(197 3% 73%)
OKLCH
oklch(0.302 0.054 229.7) · oklch(30.2% 0.054 229.7)
OKLab
oklab(0.302 -0.035 -0.041)
Lab (D50)
lab(19.13 -9.44 -15.01)
LCH (D50)
lch(19.13 17.73 237.82)
Display P3
color(display-p3 0.0852 0.1967 0.2602)
Linear sRGB
color(srgb-linear 0.0024 0.0331 0.0578)

Gamut: sRGB and Display P3

#083344 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.060 and Display P3 reaches 0.079; this color uses 90% of the sRGB chroma available.

CSS snippets

.element {
  color: #083344;
  color: rgb(8 51 68);
  color: hsl(197 79% 15%);
  color: oklch(0.302 0.054 229.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.302 0.054 229.7);
}
/* arbitrary values */
class="text-[#083344] bg-[oklch(0.302_0.054_229.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.0852 0.1967 0.2602); }
}

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

  • #1B4354 · oklch(0.362 0.054 229.7) · ΔL +0.06
  • #002434 · oklch(0.242 0.054 229.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?