OKLCH in HEX: #1C398E

Noto anche come: Tailwind blue-900

Risultato

oklch(0.37963 0.14528 265.465) → #1C398E

I valori sono mostrati a piena precisione, quindi riconvertendo si ottiene esattamente #1c398e. 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.37963 0.14528 265.465)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.01149
    b = C·sin H = -0.14483
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.343823
    m′ = L − 0.1056·a − 0.0639·b = 0.390090
    s′ = L − 0.0895·a − 1.2915·b = 0.567698
  4. 4. cube

    l = 0.343823³ = 0.040645
    m = 0.390090³ = 0.059360
    s = 0.567698³ = 0.182958
  5. 5. LMS → linear sRGB

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

    R = 0.10979 × 255 = 28.00 → 28
    G = 0.22352 × 255 = 57.00 → 57
    B = 0.55686 × 255 = 142.00 → 142
  7. 7. RGB → HEX

    #1C398E

Tutti i formati

HEX
#1c398e
RGB
rgb(28 57 142)
RGB (legacy)
rgb(28, 57, 142)
HSL
hsl(224.74 67.06% 33.33%) → hsl(225 67% 33%)
HWB
hwb(225 11% 44%)
OKLCH
oklch(0.380 0.145 265.5) · oklch(38.0% 0.145 265.5)
OKLab
oklab(0.380 -0.011 -0.145)
Lab (D50)
lab(26.25 15.50 -51.29)
LCH (D50)
lch(26.25 53.58 286.81)
Display P3
color(display-p3 0.1373 0.2208 0.5366)
Linear sRGB
color(srgb-linear 0.0116 0.0409 0.2705)

Gamut: sRGB e Display P3

#1C398E è 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.259 e Display P3 a 0.260; questo colore usa il 56% della croma sRGB disponibile.

Snippet CSS

.element {
  color: #1c398e;
  color: rgb(28 57 142);
  color: hsl(225 67% 33%);
  color: oklch(0.380 0.145 265.5);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.380 0.145 265.5);
}
/* arbitrary values */
class="text-[#1c398e] bg-[oklch(0.380_0.145_265.5)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.1373 0.2208 0.5366); }
}

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

  • #2B4BA1 · oklch(0.440 0.145 265.5) · ΔL +0.06
  • #0E277B · oklch(0.320 0.145 265.5) · ΔL −0.06

Apri nello studio

Altri convertitori per questo colore

Tutti i convertitori →