HEX in OKLCH: #1E1B4B

Auch bekannt als: Tailwind v3 indigo-950

Ergebnis

#1E1B4B → oklch(0.257 0.086 281.3)

Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #1e1b4b. 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: 30/255 = 0.11765 → 0.012983  (((x + 0.055) / 1.055)^2.4)
    G: 27/255 = 0.10588 → 0.010960  (((x + 0.055) / 1.055)^2.4)
    B: 75/255 = 0.29412 → 0.070360  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.014850
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.017768
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.048559
  3. 3. cube root

    l′ = ∛0.014850 = 0.245796
    m′ = ∛0.017768 = 0.260944
    s′ = ∛0.048559 = 0.364831
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.08607
    H = atan2(b, a) = 281.288°
    L = 0.25733
  6. 6. OKLCH

    oklch(0.25733 0.08607 281.288)
    rounded: oklch(0.257 0.086 281.3)

Alle Formate

HEX
#1e1b4b
RGB
rgb(30 27 75)
RGB (legacy)
rgb(30, 27, 75)
HSL
hsl(243.75 47.06% 20.00%) → hsl(244 47% 20%)
HWB
hwb(244 11% 71%)
OKLCH
oklch(0.257 0.086 281.3) · oklch(25.7% 0.086 281.3)
OKLab
oklab(0.257 0.017 -0.084)
Lab (D50)
lab(12.62 13.92 -29.99)
LCH (D50)
lch(12.62 33.07 294.90)
Display P3
color(display-p3 0.1156 0.1063 0.2830)
Linear sRGB
color(srgb-linear 0.0130 0.0110 0.0704)

Gamut: sRGB und Display P3

#1E1B4B 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.154, Display P3 von 0.157; diese Farbe nutzt 56 % der verfügbaren sRGB-Chroma.

CSS-Snippets

.element {
  color: #1e1b4b;
  color: rgb(30 27 75);
  color: hsl(244 47% 20%);
  color: oklch(0.257 0.086 281.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.257 0.086 281.3);
}
/* arbitrary values */
class="text-[#1e1b4b] bg-[oklch(0.257_0.086_281.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.1156 0.1063 0.2830); }
}

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

  • #2C2B5C · oklch(0.317 0.086 281.3) · ΔL +0.06
  • #120B3A · oklch(0.197 0.086 281.3) · ΔL −0.06

Im Studio öffnen

Weitere Umrechner für diese Farbe

Alle Umrechner →