HEX to RGB: #64748B

Also known as: Tailwind v3 slate-500

Result

#64748B → rgb(100 116 139)

Values are shown at full precision, so converting back gives exactly #64748b. 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

    #64748B → 64 | 74 | 8B
  2. 2. base 16 → base 10

    R = 64₁₆ = 6×16 + 4 = 100
    G = 74₁₆ = 7×16 + 4 = 116
    B = 8B₁₆ = 8×16 + 11 = 139
  3. 3. RGB

    rgb(100 116 139)

All formats

HEX
#64748b
RGB
rgb(100 116 139)
RGB (legacy)
rgb(100, 116, 139)
HSL
hsl(215.38 16.32% 46.86%) → hsl(215 16% 47%)
HWB
hwb(215 39% 45%)
OKLCH
oklch(0.554 0.041 257.4) · oklch(55.4% 0.041 257.4)
OKLab
oklab(0.554 -0.009 -0.040)
Lab (D50)
lab(48.16 -1.93 -14.72)
LCH (D50)
lch(48.16 14.85 262.54)
Display P3
color(display-p3 0.4042 0.4530 0.5370)
Linear sRGB
color(srgb-linear 0.1274 0.1746 0.2582)

Gamut: sRGB and Display P3

#64748B is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.200 and Display P3 reaches 0.254; this color uses 20% of the sRGB chroma available.

CSS snippets

.element {
  color: #64748b;
  color: rgb(100 116 139);
  color: hsl(215 16% 47%);
  color: oklch(0.554 0.041 257.4);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.554 0.041 257.4);
}
/* arbitrary values */
class="text-[#64748b] bg-[oklch(0.554_0.041_257.4)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4042 0.4530 0.5370); }
}

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

  • #75869D · oklch(0.614 0.041 257.4) · ΔL +0.06
  • #536379 · oklch(0.494 0.041 257.4) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?