OKLCH in HEX: #162456

Noto anche come: Tailwind blue-950

Risultato

oklch(0.28104 0.09244 268.132) → #162456

I valori sono mostrati a piena precisione, quindi riconvertendo si ottiene esattamente #162456. 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.28104 0.09244 268.132)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.00301
    b = C·sin H = -0.09239
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.259907
    m′ = L − 0.1056·a − 0.0639·b = 0.287258
    s′ = L − 0.0895·a − 1.2915·b = 0.400631
  4. 4. cube

    l = 0.259907³ = 0.017557
    m = 0.287258³ = 0.023704
    s = 0.400631³ = 0.064303
  5. 5. LMS → linear sRGB

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

    R = 0.08628 × 255 = 22.00 → 22
    G = 0.14118 × 255 = 36.00 → 36
    B = 0.33725 × 255 = 86.00 → 86
  7. 7. RGB → HEX

    #162456

Tutti i formati

HEX
#162456
RGB
rgb(22 36 86)
RGB (legacy)
rgb(22, 36, 86)
HSL
hsl(226.88 59.26% 21.18%) → hsl(227 59% 21%)
HWB
hwb(227 9% 66%)
OKLCH
oklch(0.281 0.092 268.1) · oklch(28.1% 0.092 268.1)
OKLab
oklab(0.281 -0.003 -0.092)
Lab (D50)
lab(15.53 9.30 -32.80)
LCH (D50)
lch(15.53 34.09 285.83)
Display P3
color(display-p3 0.0981 0.1397 0.3248)
Linear sRGB
color(srgb-linear 0.0080 0.0176 0.0931)

Gamut: sRGB e Display P3

#162456 è 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.187 e Display P3 a 0.188; questo colore usa il 49% della croma sRGB disponibile.

Snippet CSS

.element {
  color: #162456;
  color: rgb(22 36 86);
  color: hsl(227 59% 21%);
  color: oklch(0.281 0.092 268.1);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.281 0.092 268.1);
}
/* arbitrary values */
class="text-[#162456] bg-[oklch(0.281_0.092_268.1)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.0981 0.1397 0.3248); }
}

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

  • #243468 · oklch(0.341 0.092 268.1) · ΔL +0.06
  • #091445 · oklch(0.221 0.092 268.1) · ΔL −0.06

Apri nello studio

Altri convertitori per questo colore

Tutti i convertitori →