RGB to HEX: #4338CA

Also known as: Tailwind v3 indigo-700

Result

rgb(67 56 202) → #4338CA

Values are shown at full precision, so converting back gives exactly #4338ca. 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 = 67 = 4×16 + 3 → 43
    G = 56 = 3×16 + 8 → 38
    B = 202 = 12×16 + 10 → CA
  2. 2. pairs → HEX

    43 38 CA → #4338CA

All formats

HEX
#4338ca
RGB
rgb(67 56 202)
RGB (legacy)
rgb(67, 56, 202)
HSL
hsl(244.52 57.94% 50.59%) → hsl(245 58% 51%)
HWB
hwb(245 22% 21%)
OKLCH
oklch(0.457 0.215 277.0) · oklch(45.7% 0.215 277.0)
OKLab
oklab(0.457 0.026 -0.213)
Lab (D50)
lab(33.27 40.13 -75.54)
LCH (D50)
lch(33.27 85.54 297.98)
Display P3
color(display-p3 0.2557 0.2212 0.7621)
Linear sRGB
color(srgb-linear 0.0561 0.0395 0.5906)

Gamut: sRGB and Display P3

#4338CA is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.283 and Display P3 reaches 0.286; this color uses 76% of the sRGB chroma available.

CSS snippets

.element {
  color: #4338ca;
  color: rgb(67 56 202);
  color: hsl(245 58% 51%);
  color: oklch(0.457 0.215 277.0);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.457 0.215 277.0);
}
/* arbitrary values */
class="text-[#4338ca] bg-[oklch(0.457_0.215_277.0)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2557 0.2212 0.7621); }
}

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

  • #514DDF · oklch(0.517 0.215 277.0) · ΔL +0.06
  • #3620B5 · oklch(0.397 0.215 277.0) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?