HEX to RGB: #1E293B

Also known as: Tailwind v3 slate-800

Result

#1E293B → rgb(30 41 59)

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

    #1E293B → 1E | 29 | 3B
  2. 2. base 16 → base 10

    R = 1E₁₆ = 1×16 + 14 = 30
    G = 29₁₆ = 2×16 + 9 = 41
    B = 3B₁₆ = 3×16 + 11 = 59
  3. 3. RGB

    rgb(30 41 59)

All formats

HEX
#1e293b
RGB
rgb(30 41 59)
RGB (legacy)
rgb(30, 41, 59)
HSL
hsl(217.24 32.58% 17.45%) → hsl(217 33% 17%)
HWB
hwb(217 12% 77%)
OKLCH
oklch(0.280 0.037 260.0) · oklch(28.0% 0.037 260.0)
OKLab
oklab(0.279 -0.006 -0.036)
Lab (D50)
lab(16.22 -0.48 -13.23)
LCH (D50)
lch(16.22 13.23 267.94)
Display P3
color(display-p3 0.1264 0.1595 0.2256)
Linear sRGB
color(srgb-linear 0.0130 0.0222 0.0437)

Gamut: sRGB and Display P3

#1E293B is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.114 and Display P3 reaches 0.144; this color uses 32% of the sRGB chroma available.

CSS snippets

.element {
  color: #1e293b;
  color: rgb(30 41 59);
  color: hsl(217 33% 17%);
  color: oklch(0.280 0.037 260.0);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.280 0.037 260.0);
}
/* arbitrary values */
class="text-[#1e293b] bg-[oklch(0.280_0.037_260.0)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.1264 0.1595 0.2256); }
}

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

  • #2D384B · oklch(0.340 0.037 260.0) · ΔL +0.06
  • #101B2C · oklch(0.220 0.037 260.0) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?