OKLCH to HEX: #193CB8

Also known as: Tailwind blue-800

Result

oklch(0.42421 0.19822 265.499) → #193CB8

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. input

    oklch(0.42421 0.19822 265.499)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.01556
    b = C·sin H = -0.19761
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.375400
    m′ = L − 0.1056·a − 0.0639·b = 0.438470
    s′ = L − 0.0895·a − 1.2915·b = 0.680811
  4. 4. cube

    l = 0.375400³ = 0.052903
    m = 0.438470³ = 0.084299
    s = 0.680811³ = 0.315558
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 0.009722
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.045188
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.479332
  6. 6. linear → sRGB, × 255

    R = 0.09805 × 255 = 25.00 → 25
    G = 0.23530 × 255 = 60.00 → 60
    B = 0.72158 × 255 = 184.00 → 184
  7. 7. RGB → HEX

    #193CB8

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?