OKLCH in HEX: #1E1B4B
Auch bekannt als: Tailwind v3 indigo-950
Ergebnis
oklch(0.25733 0.08607 281.288) → #1E1B4B
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. input
oklch(0.25733 0.08607 281.288)
2. OKLCH → Oklab
a = C·cos H = 0.01685 b = C·sin H = -0.08441
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.245792 m′ = L − 0.1056·a − 0.0639·b = 0.260941 s′ = L − 0.0895·a − 1.2915·b = 0.364830
4. cube
l = 0.245792³ = 0.014849 m = 0.260941³ = 0.017768 s = 0.364830³ = 0.048559
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.012982 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.010959 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.070360
6. linear → sRGB, × 255
R = 0.11764 × 255 = 30.00 → 30 G = 0.10588 × 255 = 27.00 → 27 B = 0.29412 × 255 = 75.00 → 75
7. RGB → HEX
#1E1B4B
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).
- indigo-950#1E1A4D
- blue-950#162456
- v3 blue-950#172554
- slate-800#1D293D
- v3 slate-800#1E293B
- v3 violet-950#2E1065
- gray-800#1E2939
- v3 gray-800#1F2937
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