HEX in OKLCH: #3730A3
Auch bekannt als: Tailwind v3 indigo-800
Ergebnis
#3730A3 → oklch(0.398 0.177 277.4)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #3730a3. 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. sRGB → linear
R: 55/255 = 0.21569 → 0.038204 (((x + 0.055) / 1.055)^2.4) G: 48/255 = 0.18824 → 0.029557 (((x + 0.055) / 1.055)^2.4) B: 163/255 = 0.63922 → 0.366253 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.050443 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.067549 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.242432
3. cube root
l′ = ∛0.050443 = 0.369488 m′ = ∛0.067549 = 0.407262 s′ = ∛0.242432 = 0.623538
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.39843 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.02274 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.17588
5. Oklab → OKLCH
C = √(a² + b²) = 0.17734 H = atan2(b, a) = 277.366° L = 0.39843
6. OKLCH
oklch(0.39843 0.17734 277.366) rounded: oklch(0.398 0.177 277.4)
Alle Formate
- HEX
- #3730a3
- RGB
- rgb(55 48 163)
- RGB (legacy)
- rgb(55, 48, 163)
- HSL
- hsl(243.65 54.50% 41.37%) → hsl(244 55% 41%)
- HWB
- hwb(244 19% 36%)
- OKLCH
- oklch(0.398 0.177 277.4) · oklch(39.8% 0.177 277.4)
- OKLab
- oklab(0.398 0.023 -0.176)
- Lab (D50)
- lab(27.27 31.98 -62.36)
- LCH (D50)
- lch(27.27 70.08 297.15)
- Display P3
- color(display-p3 0.2111 0.1892 0.6149)
- Linear sRGB
- color(srgb-linear 0.0382 0.0296 0.3663)
Gamut: sRGB und Display P3
#3730A3 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.246, Display P3 von 0.249; diese Farbe nutzt 72 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #3730a3;
color: rgb(55 48 163);
color: hsl(244 55% 41%);
color: oklch(0.398 0.177 277.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.398 0.177 277.4);
}
/* arbitrary values */
class="text-[#3730a3] bg-[oklch(0.398_0.177_277.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2111 0.1892 0.6149); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #3730a3 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- indigo-800#372AAC
- v3 blue-800#1E40AF
- blue-900#1C398E
- blue-800#193CB8
- indigo-900#312C85
- v3 violet-900#4C1D95
- v3 blue-900#1E3A8A
- violet-900#4D179A
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #4543B7 · oklch(0.458 0.177 277.4) · ΔL +0.06
- #2B1A8F · oklch(0.338 0.177 277.4) · ΔL −0.06