HEX to OKLCH: #22292B

Also known as: Tailwind mist-800

Result

#22292B → oklch(0.275 0.011 216.9)

Values are shown at full precision, so converting back gives exactly #22292b. 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. sRGB → linear

    R: 34/255 = 0.13333 → 0.015996  (((x + 0.055) / 1.055)^2.4)
    G: 41/255 = 0.16078 → 0.022174  (((x + 0.055) / 1.055)^2.4)
    B: 43/255 = 0.16863 → 0.024158  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.019729
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.021078
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.022878
  3. 3. cube root

    l′ = ∛0.019729 = 0.270212
    m′ = ∛0.021078 = 0.276233
    s′ = ∛0.022878 = 0.283883
  4. 4. LMS′ → Oklab

    L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.27493
    a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.00846
    b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.00634
  5. 5. Oklab → OKLCH

    C = √(a² + b²) = 0.01058
    H = atan2(b, a) = 216.852°
    L = 0.27493
  6. 6. OKLCH

    oklch(0.27493 0.01058 216.852)
    rounded: oklch(0.275 0.011 216.9)

All formats

HEX
#22292b
RGB
rgb(34 41 43)
RGB (legacy)
rgb(34, 41, 43)
HSL
hsl(193.33 11.69% 15.10%) → hsl(193 12% 15%)
HWB
hwb(193 13% 83%)
OKLCH
oklch(0.275 0.011 216.9) · oklch(27.5% 0.011 216.9)
OKLab
oklab(0.275 -0.008 -0.006)
Lab (D50)
lab(15.96 -2.79 -2.41)
LCH (D50)
lch(15.96 3.69 220.83)
Display P3
color(display-p3 0.1386 0.1600 0.1675)
Linear sRGB
color(srgb-linear 0.0160 0.0222 0.0242)

Gamut: sRGB and Display P3

#22292B is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.049 and Display P3 reaches 0.065; this color uses 22% of the sRGB chroma available.

CSS snippets

.element {
  color: #22292b;
  color: rgb(34 41 43);
  color: hsl(193 12% 15%);
  color: oklch(0.275 0.011 216.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.275 0.011 216.9);
}
/* arbitrary values */
class="text-[#22292b] bg-[oklch(0.275_0.011_216.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.1386 0.1600 0.1675); }
}

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

  • #31383A · oklch(0.335 0.011 216.9) · ΔL +0.06
  • #141B1D · oklch(0.215 0.011 216.9) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?