RGB to HEX: #155E75

Also known as: Tailwind v3 cyan-800

Result

rgb(21 94 117) → #155E75

Values are shown at full precision, so converting back gives exactly #155e75. 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 = 21 = 1×16 + 5 → 15
    G = 94 = 5×16 + 14 → 5E
    B = 117 = 7×16 + 5 → 75
  2. 2. pairs → HEX

    15 5E 75 → #155E75

All formats

HEX
#155e75
RGB
rgb(21 94 117)
RGB (legacy)
rgb(21, 94, 117)
HSL
hsl(194.37 69.57% 27.06%) → hsl(194 70% 27%)
HWB
hwb(194 8% 54%)
OKLCH
oklch(0.450 0.077 224.3) · oklch(45.0% 0.077 224.3)
OKLab
oklab(0.450 -0.055 -0.054)
Lab (D50)
lab(36.50 -15.90 -19.68)
LCH (D50)
lch(36.50 25.30 231.06)
Display P3
color(display-p3 0.1757 0.3631 0.4495)
Linear sRGB
color(srgb-linear 0.0075 0.1119 0.1779)

Gamut: sRGB and Display P3

#155E75 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.085 and Display P3 reaches 0.112; this color uses 91% of the sRGB chroma available.

CSS snippets

.element {
  color: #155e75;
  color: rgb(21 94 117);
  color: hsl(194 70% 27%);
  color: oklch(0.450 0.077 224.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.450 0.077 224.3);
}
/* arbitrary values */
class="text-[#155e75] bg-[oklch(0.450_0.077_224.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.1757 0.3631 0.4495); }
}

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

  • #2B6F87 · oklch(0.510 0.077 224.3) · ΔL +0.06
  • #004D64 · oklch(0.390 0.077 224.3) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?