OKLCH in HEX: #364153

Noto anche come: Tailwind gray-700

Risultato

oklch(0.37306 0.03431 260.169) → #364153

I valori sono mostrati a piena precisione, quindi riconvertendo si ottiene esattamente #364153. 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.37306 0.03431 260.169)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.00586
    b = C·sin H = -0.03381
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.363443
    m′ = L − 0.1056·a − 0.0639·b = 0.375837
    s′ = L − 0.0895·a − 1.2915·b = 0.417244
  4. 4. cube

    l = 0.363443³ = 0.048007
    m = 0.375837³ = 0.053088
    s = 0.417244³ = 0.072639
  5. 5. LMS → linear sRGB

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

    R = 0.21177 × 255 = 54.00 → 54
    G = 0.25490 × 255 = 65.00 → 65
    B = 0.32548 × 255 = 83.00 → 83
  7. 7. RGB → HEX

    #364153

Tutti i formati

HEX
#364153
RGB
rgb(54 65 83)
RGB (legacy)
rgb(54, 65, 83)
HSL
hsl(217.24 21.17% 26.86%) → hsl(217 21% 27%)
HWB
hwb(217 21% 67%)
OKLCH
oklch(0.373 0.034 260.2) · oklch(37.3% 0.034 260.2)
OKLab
oklab(0.373 -0.006 -0.034)
Lab (D50)
lab(27.11 -0.87 -12.45)
LCH (D50)
lch(27.11 12.48 266.01)
Display P3
color(display-p3 0.2201 0.2536 0.3194)
Linear sRGB
color(srgb-linear 0.0369 0.0529 0.0865)

Gamut: sRGB e Display P3

#364153 è 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.154 e Display P3 a 0.193; questo colore usa il 22% della croma sRGB disponibile.

Snippet CSS

.element {
  color: #364153;
  color: rgb(54 65 83);
  color: hsl(217 21% 27%);
  color: oklch(0.373 0.034 260.2);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.373 0.034 260.2);
}
/* arbitrary values */
class="text-[#364153] bg-[oklch(0.373_0.034_260.2)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2201 0.2536 0.3194); }
}

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

  • #465164 · oklch(0.433 0.034 260.2) · ΔL +0.06
  • #273143 · oklch(0.313 0.034 260.2) · ΔL −0.06

Apri nello studio

Altri convertitori per questo colore

Tutti i convertitori →