HEX in HSL: #1C398E
Auch bekannt als: Tailwind blue-900
Ergebnis
#1C398E → hsl(225 67% 33%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #1c398e. 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. RGB ÷ 255
R = 0.1098 G = 0.2235 B = 0.5569
2. max, min, Δ
max = 0.5569 min = 0.1098 Δ = max − min = 0.4471
3. L
L = (max + min) / 2 = 0.3333 = 33.33%
4. S
S = Δ / (1 − |2L − 1|) = 0.6706 = 67.06%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.1098 − 0.2235) / 0.4471 + 4) = 224.74°
6. HSL
hsl(224.74 67.06% 33.33%)
Alle Formate
- HEX
- #1c398e
- RGB
- rgb(28 57 142)
- RGB (legacy)
- rgb(28, 57, 142)
- HSL
- hsl(224.74 67.06% 33.33%) → hsl(225 67% 33%)
- HWB
- hwb(225 11% 44%)
- OKLCH
- oklch(0.380 0.145 265.5) · oklch(38.0% 0.145 265.5)
- OKLab
- oklab(0.380 -0.011 -0.145)
- Lab (D50)
- lab(26.25 15.50 -51.29)
- LCH (D50)
- lch(26.25 53.58 286.81)
- Display P3
- color(display-p3 0.1373 0.2208 0.5366)
- Linear sRGB
- color(srgb-linear 0.0116 0.0409 0.2705)
Gamut: sRGB und Display P3
#1C398E 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.259, Display P3 von 0.260; diese Farbe nutzt 56 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #1c398e;
color: rgb(28 57 142);
color: hsl(225 67% 33%);
color: oklch(0.380 0.145 265.5);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.380 0.145 265.5);
}
/* arbitrary values */
class="text-[#1c398e] bg-[oklch(0.380_0.145_265.5)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1373 0.2208 0.5366); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #1c398e calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 blue-900#1E3A8A
- indigo-900#312C85
- v3 indigo-900#312E81
- v3 indigo-800#3730A3
- v3 blue-800#1E40AF
- darkslateblue#483D8B
- indigo-800#372AAC
- blue-800#193CB8
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #2B4BA1 · oklch(0.440 0.145 265.5) · ΔL +0.06
- #0E277B · oklch(0.320 0.145 265.5) · ΔL −0.06