HEX in OKLCH: #334155

Auch bekannt als: Tailwind v3 slate-700

Ergebnis

#334155 → oklch(0.372 0.039 257.3)

Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #334155. Die gerundete Form fügst du üblicherweise in CSS ein.

Rechenweg Schritt für Schritt

Jede Zahl wird aus der Eingabe berechnet, nichts ist nachgeschlagen.

  1. 1. sRGB → linear

    R: 51/255 = 0.20000 → 0.033105  (((x + 0.055) / 1.055)^2.4)
    G: 65/255 = 0.25490 → 0.052861  (((x + 0.055) / 1.055)^2.4)
    B: 85/255 = 0.33333 → 0.090842  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.046671
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.052753
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.075043
  3. 3. cube root

    l′ = ∛0.046671 = 0.360038
    m′ = ∛0.052753 = 0.375045
    s′ = ∛0.075043 = 0.421798
  4. 4. LMS′ → Oklab

    L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.37170
    a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.00862
    b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.03820
  5. 5. Oklab → OKLCH

    C = √(a² + b²) = 0.03916
    H = atan2(b, a) = 257.287°
    L = 0.37170
  6. 6. OKLCH

    oklch(0.37170 0.03916 257.287)
    rounded: oklch(0.372 0.039 257.3)

Alle Formate

HEX
#334155
RGB
rgb(51 65 85)
RGB (legacy)
rgb(51, 65, 85)
HSL
hsl(215.29 25.00% 26.67%) → hsl(215 25% 27%)
HWB
hwb(215 20% 67%)
OKLCH
oklch(0.372 0.039 257.3) · oklch(37.2% 0.039 257.3)
OKLab
oklab(0.372 -0.009 -0.038)
Lab (D50)
lab(26.95 -1.48 -14.02)
LCH (D50)
lch(26.95 14.10 263.99)
Display P3
color(display-p3 0.2109 0.2533 0.3266)
Linear sRGB
color(srgb-linear 0.0331 0.0529 0.0908)

Gamut: sRGB und Display P3

#334155 ist eine Hex-Farbe und liegt damit in sRGB und folglich in Display P3. Bei dieser Helligkeit und diesem Farbton erreicht sRGB eine Chroma von 0.133, Display P3 von 0.170; diese Farbe nutzt 29 % der verfügbaren sRGB-Chroma.

CSS-Snippets

.element {
  color: #334155;
  color: rgb(51 65 85);
  color: hsl(215 25% 27%);
  color: oklch(0.372 0.039 257.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.372 0.039 257.3);
}
/* arbitrary values */
class="text-[#334155] bg-[oklch(0.372_0.039_257.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2109 0.2533 0.3266); }
}

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

Ähnliche Farben

Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).

Heller und dunkler, gleicher Farbton und gleiche Chroma

  • #435166 · oklch(0.432 0.039 257.3) · ΔL +0.06
  • #243145 · oklch(0.312 0.039 257.3) · ΔL −0.06

Im Studio öffnen

Weitere Umrechner für diese Farbe

Alle Umrechner →