HEX to RGB: #3730A3

Also known as: Tailwind v3 indigo-800

Result

#3730A3 → rgb(55 48 163)

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

    #3730A3 → 37 | 30 | A3
  2. 2. base 16 → base 10

    R = 37₁₆ = 3×16 + 7 = 55
    G = 30₁₆ = 3×16 + 0 = 48
    B = A3₁₆ = 10×16 + 3 = 163
  3. 3. RGB

    rgb(55 48 163)

All formats

HEX
#3730a3
RGB
rgb(55 48 163)
RGB (legacy)
rgb(55, 48, 163)
HSL
hsl(243.65 54.50% 41.37%) → hsl(244 55% 41%)
HWB
hwb(244 19% 36%)
OKLCH
oklch(0.398 0.177 277.4) · oklch(39.8% 0.177 277.4)
OKLab
oklab(0.398 0.023 -0.176)
Lab (D50)
lab(27.27 31.98 -62.36)
LCH (D50)
lch(27.27 70.08 297.15)
Display P3
color(display-p3 0.2111 0.1892 0.6149)
Linear sRGB
color(srgb-linear 0.0382 0.0296 0.3663)

Gamut: sRGB and Display P3

#3730A3 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.246 and Display P3 reaches 0.249; this color uses 72% of the sRGB chroma available.

CSS snippets

.element {
  color: #3730a3;
  color: rgb(55 48 163);
  color: hsl(244 55% 41%);
  color: oklch(0.398 0.177 277.4);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.398 0.177 277.4);
}
/* arbitrary values */
class="text-[#3730a3] bg-[oklch(0.398_0.177_277.4)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2111 0.1892 0.6149); }
}

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

  • #4543B7 · oklch(0.458 0.177 277.4) · ΔL +0.06
  • #2B1A8F · oklch(0.338 0.177 277.4) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?