RGB to HEX: #22D3EE

Also known as: Tailwind v3 cyan-400

Result

rgb(34 211 238) → #22D3EE

Values are shown at full precision, so converting back gives exactly #22d3ee. 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 = 34 = 2×16 + 2 → 22
    G = 211 = 13×16 + 3 → D3
    B = 238 = 14×16 + 14 → EE
  2. 2. pairs → HEX

    22 D3 EE → #22D3EE

All formats

HEX
#22d3ee
RGB
rgb(34 211 238)
RGB (legacy)
rgb(34, 211, 238)
HSL
hsl(187.94 85.71% 53.33%) → hsl(188 86% 53%)
HWB
hwb(188 13% 7%)
OKLCH
oklch(0.797 0.134 211.5) · oklch(79.7% 0.134 211.5)
OKLab
oklab(0.797 -0.114 -0.070)
Lab (D50)
lab(77.42 -36.05 -25.89)
LCH (D50)
lch(77.42 44.38 215.68)
Display P3
color(display-p3 0.3942 0.8154 0.9192)
Linear sRGB
color(srgb-linear 0.0160 0.6514 0.8550)

Gamut: sRGB and Display P3

#22D3EE is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.139 and Display P3 reaches 0.185; this color uses 97% of the sRGB chroma available.

CSS snippets

.element {
  color: #22d3ee;
  color: rgb(34 211 238);
  color: hsl(188 86% 53%);
  color: oklch(0.797 0.134 211.5);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.797 0.134 211.5);
}
/* arbitrary values */
class="text-[#22d3ee] bg-[oklch(0.797_0.134_211.5)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.3942 0.8154 0.9192); }
}

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

  • #45E7FF · oklch(0.857 0.134 211.5) · ΔL +0.06
  • #00BFDA · oklch(0.737 0.134 211.5) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?