RGB to HEX: #2B2422

Also known as: Tailwind taupe-800

Result

rgb(43 36 34) → #2B2422

Values are shown at full precision, so converting back gives exactly #2b2422. 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 = 43 = 2×16 + 11 → 2B
    G = 36 = 2×16 + 4 → 24
    B = 34 = 2×16 + 2 → 22
  2. 2. pairs → HEX

    2B 24 22 → #2B2422

All formats

HEX
#2b2422
RGB
rgb(43 36 34)
RGB (legacy)
rgb(43, 36, 34)
HSL
hsl(13.33 11.69% 15.10%) → hsl(13 12% 15%)
HWB
hwb(13 13% 83%)
OKLCH
oklch(0.268 0.011 36.5) · oklch(26.8% 0.011 36.5)
OKLab
oklab(0.268 0.009 0.007)
Lab (D50)
lab(14.95 3.09 2.62)
LCH (D50)
lch(14.95 4.06 40.28)
Display P3
color(display-p3 0.1641 0.1422 0.1346)
Linear sRGB
color(srgb-linear 0.0242 0.0176 0.0160)

Gamut: sRGB and Display P3

#2B2422 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.091 and Display P3 reaches 0.102; this color uses 12% of the sRGB chroma available.

CSS snippets

.element {
  color: #2b2422;
  color: rgb(43 36 34);
  color: hsl(13 12% 15%);
  color: oklch(0.268 0.011 36.5);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.268 0.011 36.5);
}
/* arbitrary values */
class="text-[#2b2422] bg-[oklch(0.268_0.011_36.5)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.1641 0.1422 0.1346); }
}

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

  • #3A3331 · oklch(0.328 0.011 36.5) · ΔL +0.06
  • #1D1614 · oklch(0.208 0.011 36.5) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?