HEX to RGB: #022F2E

Also known as: Tailwind teal-950

Result

#022F2E → rgb(2 47 46)

Values are shown at full precision, so converting back gives exactly #022f2e. 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. HEX → pairs

    #022F2E → 02 | 2F | 2E
  2. 2. base 16 → base 10

    R = 02₁₆ = 0×16 + 2 = 2
    G = 2F₁₆ = 2×16 + 15 = 47
    B = 2E₁₆ = 2×16 + 14 = 46
  3. 3. RGB

    rgb(2 47 46)

All formats

HEX
#022f2e
RGB
rgb(2 47 46)
RGB (legacy)
rgb(2, 47, 46)
HSL
hsl(178.67 91.84% 9.61%) → hsl(179 92% 10%)
HWB
hwb(179 1% 82%)
OKLCH
oklch(0.277 0.046 192.5) · oklch(27.7% 0.046 192.5)
OKLab
oklab(0.277 -0.045 -0.010)
Lab (D50)
lab(16.59 -15.31 -3.82)
LCH (D50)
lch(16.59 15.78 194.00)
Display P3
color(display-p3 0.0661 0.1810 0.1790)
Linear sRGB
color(srgb-linear 0.0006 0.0284 0.0273)

Gamut: sRGB and Display P3

#022F2E is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.047 and Display P3 reaches 0.064; this color uses 97% of the sRGB chroma available.

CSS snippets

.element {
  color: #022f2e;
  color: rgb(2 47 46);
  color: hsl(179 92% 10%);
  color: oklch(0.277 0.046 192.5);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.277 0.046 192.5);
}
/* arbitrary values */
class="text-[#022f2e] bg-[oklch(0.277_0.046_192.5)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.0661 0.1810 0.1790); }
}

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

  • #153F3D · oklch(0.337 0.046 192.5) · ΔL +0.06
  • #00201F · oklch(0.217 0.046 192.5) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?