RGB to HEX: #2563EB

Also known as: Tailwind v3 blue-600

Result

rgb(37 99 235) → #2563EB

Values are shown at full precision, so converting back gives exactly #2563eb. 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 = 37 = 2×16 + 5 → 25
    G = 99 = 6×16 + 3 → 63
    B = 235 = 14×16 + 11 → EB
  2. 2. pairs → HEX

    25 63 EB → #2563EB

All formats

HEX
#2563eb
RGB
rgb(37 99 235)
RGB (legacy)
rgb(37, 99, 235)
HSL
hsl(221.21 83.19% 53.33%) → hsl(221 83% 53%)
HWB
hwb(221 15% 8%)
OKLCH
oklch(0.546 0.215 262.9) · oklch(54.6% 0.215 262.9)
OKLab
oklab(0.546 -0.027 -0.214)
Lab (D50)
lab(44.79 21.05 -75.60)
LCH (D50)
lch(44.79 78.47 285.56)
Display P3
color(display-p3 0.2132 0.3830 0.8890)
Linear sRGB
color(srgb-linear 0.0185 0.1248 0.8308)

Gamut: sRGB and Display P3

#2563EB is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.251 and Display P3 reaches 0.269; this color uses 86% of the sRGB chroma available.

CSS snippets

.element {
  color: #2563eb;
  color: rgb(37 99 235);
  color: hsl(221 83% 53%);
  color: oklch(0.546 0.215 262.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.546 0.215 262.9);
}
/* arbitrary values */
class="text-[#2563eb] bg-[oklch(0.546_0.215_262.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2132 0.3830 0.8890); }
}

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

  • #3777FF · oklch(0.606 0.215 262.9) · ΔL +0.06
  • #124FD6 · oklch(0.486 0.215 262.9) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?