RGB to HEX: #2DD4BF

Also known as: Tailwind v3 teal-400

Result

rgb(45 212 191) → #2DD4BF

Values are shown at full precision, so converting back gives exactly #2dd4bf. 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 = 45 = 2×16 + 13 → 2D
    G = 212 = 13×16 + 4 → D4
    B = 191 = 11×16 + 15 → BF
  2. 2. pairs → HEX

    2D D4 BF → #2DD4BF

All formats

HEX
#2dd4bf
RGB
rgb(45 212 191)
RGB (legacy)
rgb(45, 212, 191)
HSL
hsl(172.46 66.01% 50.39%) → hsl(172 66% 50%)
HWB
hwb(172 18% 17%)
OKLCH
oklch(0.785 0.133 181.9) · oklch(78.5% 0.133 181.9)
OKLab
oklab(0.785 -0.132 -0.004)
Lab (D50)
lab(76.64 -46.24 -2.00)
LCH (D50)
lch(76.64 46.29 182.48)
Display P3
color(display-p3 0.4079 0.8195 0.7500)
Linear sRGB
color(srgb-linear 0.0262 0.6584 0.5210)

Gamut: sRGB and Display P3

#2DD4BF is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.141 and Display P3 reaches 0.190; this color uses 94% of the sRGB chroma available.

CSS snippets

.element {
  color: #2dd4bf;
  color: rgb(45 212 191);
  color: hsl(172 66% 50%);
  color: oklch(0.785 0.133 181.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.785 0.133 181.9);
}
/* arbitrary values */
class="text-[#2dd4bf] bg-[oklch(0.785_0.133_181.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4079 0.8195 0.7500); }
}

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

  • #4BE8D2 · oklch(0.845 0.133 181.9) · ΔL +0.06
  • #00C0AC · oklch(0.725 0.133 181.9) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?