HEX in HSL: #000080
Auch bekannt als: CSS navy
Ergebnis
#000080 → hsl(240 100% 25%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #000080. 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.0000 G = 0.0000 B = 0.5020
2. max, min, Δ
max = 0.5020 min = 0.0000 Δ = max − min = 0.5020
3. L
L = (max + min) / 2 = 0.2510 = 25.10%
4. S
S = Δ / (1 − |2L − 1|) = 1.0000 = 100.00%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.0000 − 0.0000) / 0.5020 + 4) = 240.00°
6. HSL
hsl(240.00 100.00% 25.10%)
Alle Formate
- HEX
- #000080
- RGB
- rgb(0 0 128)
- RGB (legacy)
- rgb(0, 0, 128)
- HSL
- hsl(240.00 100.00% 25.10%) → hsl(240 100% 25%)
- HWB
- hwb(240 0% 50%)
- OKLCH
- oklch(0.271 0.188 264.1) · oklch(27.1% 0.188 264.1)
- OKLab
- oklab(0.271 -0.019 -0.187)
- Lab (D50)
- lab(11.34 40.96 -67.20)
- LCH (D50)
- lch(11.34 78.70 301.36)
- Display P3
- color(display-p3 0.0000 0.0000 0.4806)
- Linear sRGB
- color(srgb-linear 0.0000 0.0000 0.2159)
Gamut: sRGB und Display P3
#000080 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.159, Display P3 von 0.188; diese Farbe nutzt 100 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #000080;
color: rgb(0 0 128);
color: hsl(240 100% 25%);
color: oklch(0.271 0.188 264.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.271 0.188 264.1);
}
/* arbitrary values */
class="text-[#000080] bg-[oklch(0.271_0.188_264.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.0000 0.0000 0.4806); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #000080 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- darkblue#00008B
- midnightblue#191970
- violet-950#2F0D68
- v3 violet-950#2E1065
- blue-950#162456
- v3 blue-950#172554
- indigo-950#1E1A4D
- indigo-900#312C85
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #011F94 · oklch(0.331 0.188 264.1) · ΔL +0.06
- #05006D · oklch(0.211 0.188 264.1) · ΔL −0.06