OKLCH in HEX: #172554

Noto anche come: Tailwind v3 blue-950

Risultato

oklch(0.28226 0.08745 267.935) → #172554

I valori sono mostrati a piena precisione, quindi riconvertendo si ottiene esattamente #172554. La forma arrotondata è quella che di solito incolli nel CSS.

Calcolo passo passo

Ogni numero è calcolato dall’input, nulla viene cercato in tabelle.

  1. 1. input

    oklch(0.28226 0.08745 267.935)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.00315
    b = C·sin H = -0.08739
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.262151
    m′ = L − 0.1056·a − 0.0639·b = 0.288173
    s′ = L − 0.0895·a − 1.2915·b = 0.395409
  4. 4. cube

    l = 0.262151³ = 0.018016
    m = 0.288173³ = 0.023931
    s = 0.395409³ = 0.061822
  5. 5. LMS → linear sRGB

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

    R = 0.09020 × 255 = 23.00 → 23
    G = 0.14510 × 255 = 37.00 → 37
    B = 0.32942 × 255 = 84.00 → 84
  7. 7. RGB → HEX

    #172554

Tutti i formati

HEX
#172554
RGB
rgb(23 37 84)
RGB (legacy)
rgb(23, 37, 84)
HSL
hsl(226.23 57.01% 20.98%) → hsl(226 57% 21%)
HWB
hwb(226 9% 67%)
OKLCH
oklch(0.282 0.087 267.9) · oklch(28.2% 0.087 267.9)
OKLab
oklab(0.282 -0.003 -0.087)
Lab (D50)
lab(15.77 8.12 -31.06)
LCH (D50)
lch(15.77 32.10 284.65)
Display P3
color(display-p3 0.1020 0.1436 0.3175)
Linear sRGB
color(srgb-linear 0.0086 0.0185 0.0887)

Gamut: sRGB e Display P3

#172554 è un colore esadecimale, quindi sta dentro sRGB e di conseguenza dentro Display P3. A questa luminosità e tonalità sRGB arriva a una croma di 0.188 e Display P3 a 0.189; questo colore usa il 46% della croma sRGB disponibile.

Snippet CSS

.element {
  color: #172554;
  color: rgb(23 37 84);
  color: hsl(226 57% 21%);
  color: oklch(0.282 0.087 267.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.282 0.087 267.9);
}
/* arbitrary values */
class="text-[#172554] bg-[oklch(0.282_0.087_267.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.1020 0.1436 0.3175); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #172554 calc(l - 0.1) c h); }

Colori vicini

I colori più vicini nelle palette Tailwind e CSS (distanza OKLab).

Più chiaro e più scuro, stessa tonalità e croma

  • #253565 · oklch(0.342 0.087 267.9) · ΔL +0.06
  • #0A1543 · oklch(0.222 0.087 267.9) · ΔL −0.06

Apri nello studio

Altri convertitori per questo colore

Tutti i convertitori →