HSL in HEX: #312C85
Auch bekannt als: Tailwind indigo-900
Ergebnis
hsl(243.37 50.28% 34.71%) → #312C85
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #312c85. 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
H = 243.37°, S = 50.28%, L = 34.71%
2. C
C = (1 − |2L − 1|) × S = 0.34904
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.01960 (H / 60° = 4.0562, sector 4)
4. m
m = L − C / 2 = 0.17258
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.01960, 0.00000, 0.34904) R = round((0.01960 + 0.17258) × 255) = 49 G = round((0.00000 + 0.17258) × 255) = 44 B = round((0.34904 + 0.17258) × 255) = 133
6. RGB → HEX
#312C85
Alle Formate
- HEX
- #312c85
- RGB
- rgb(49 44 133)
- RGB (legacy)
- rgb(49, 44, 133)
- HSL
- hsl(243.37 50.28% 34.71%) → hsl(243 50% 35%)
- HWB
- hwb(243 17% 48%)
- OKLCH
- oklch(0.359 0.144 278.8) · oklch(35.9% 0.144 278.8)
- OKLab
- oklab(0.359 0.022 -0.142)
- Lab (D50)
- lab(23.37 24.66 -50.32)
- LCH (D50)
- lch(23.37 56.04 296.10)
- Display P3
- color(display-p3 0.1888 0.1732 0.5020)
- Linear sRGB
- color(srgb-linear 0.0307 0.0252 0.2346)
Gamut: sRGB und Display P3
#312C85 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.219, Display P3 von 0.222; diese Farbe nutzt 66 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #312c85;
color: rgb(49 44 133);
color: hsl(243 50% 35%);
color: oklch(0.359 0.144 278.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.359 0.144 278.8);
}
/* arbitrary values */
class="text-[#312c85] bg-[oklch(0.359_0.144_278.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1888 0.1732 0.5020); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #312c85 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 indigo-900#312E81
- v3 blue-900#1E3A8A
- blue-900#1C398E
- v3 indigo-800#3730A3
- v3 violet-900#4C1D95
- darkslateblue#483D8B
- indigo-800#372AAC
- violet-900#4D179A
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #3F3E98 · oklch(0.419 0.144 278.8) · ΔL +0.06
- #241972 · oklch(0.299 0.144 278.8) · ΔL −0.06