HEX to RGB: #193CB8

Also known as: Tailwind blue-800

Result

#193CB8 → rgb(25 60 184)

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

    #193CB8 → 19 | 3C | B8
  2. 2. base 16 → base 10

    R = 19₁₆ = 1×16 + 9 = 25
    G = 3C₁₆ = 3×16 + 12 = 60
    B = B8₁₆ = 11×16 + 8 = 184
  3. 3. RGB

    rgb(25 60 184)

All formats

HEX
#193cb8
RGB
rgb(25 60 184)
RGB (legacy)
rgb(25, 60, 184)
HSL
hsl(226.79 76.08% 40.98%) → hsl(227 76% 41%)
HWB
hwb(227 10% 28%)
OKLCH
oklch(0.424 0.198 265.5) · oklch(42.4% 0.198 265.5)
OKLab
oklab(0.424 -0.016 -0.198)
Lab (D50)
lab(30.31 27.39 -69.98)
LCH (D50)
lch(30.31 75.15 291.38)
Display P3
color(display-p3 0.1334 0.2321 0.6943)
Linear sRGB
color(srgb-linear 0.0097 0.0452 0.4793)

Gamut: sRGB and Display P3

#193CB8 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.290 and Display P3 reaches 0.290; this color uses 68% of the sRGB chroma available.

CSS snippets

.element {
  color: #193cb8;
  color: rgb(25 60 184);
  color: hsl(227 76% 41%);
  color: oklch(0.424 0.198 265.5);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.424 0.198 265.5);
}
/* arbitrary values */
class="text-[#193cb8] bg-[oklch(0.424_0.198_265.5)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.1334 0.2321 0.6943); }
}

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

  • #2750CC · oklch(0.484 0.198 265.5) · ΔL +0.06
  • #0D27A4 · oklch(0.364 0.198 265.5) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?