RGB to HEX: #161B1D

Also known as: Tailwind mist-900

Result

rgb(22 27 29) → #161B1D

Values are shown at full precision, so converting back gives exactly #161b1d. 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 = 22 = 1×16 + 6 → 16
    G = 27 = 1×16 + 11 → 1B
    B = 29 = 1×16 + 13 → 1D
  2. 2. pairs → HEX

    16 1B 1D → #161B1D

All formats

HEX
#161b1d
RGB
rgb(22 27 29)
RGB (legacy)
rgb(22, 27, 29)
HSL
hsl(197.14 13.73% 10.00%) → hsl(197 14% 10%)
HWB
hwb(197 9% 89%)
OKLCH
oklch(0.218 0.008 223.9) · oklch(21.8% 0.008 223.9)
OKLab
oklab(0.218 -0.006 -0.006)
Lab (D50)
lab(9.31 -1.99 -2.23)
LCH (D50)
lch(9.31 2.99 228.19)
Display P3
color(display-p3 0.0900 0.1053 0.1128)
Linear sRGB
color(srgb-linear 0.0080 0.0110 0.0123)

Gamut: sRGB and Display P3

#161B1D is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.041 and Display P3 reaches 0.054; this color uses 21% of the sRGB chroma available.

CSS snippets

.element {
  color: #161b1d;
  color: rgb(22 27 29);
  color: hsl(197 14% 10%);
  color: oklch(0.218 0.008 223.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.218 0.008 223.9);
}
/* arbitrary values */
class="text-[#161b1d] bg-[oklch(0.218_0.008_223.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.0900 0.1053 0.1128); }
}

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

  • #24292B · oklch(0.278 0.008 223.9) · ΔL +0.06
  • #090E0F · oklch(0.158 0.008 223.9) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?