HEX in HSL: #052F4A
Auch bekannt als: Tailwind sky-950
Ergebnis
#052F4A → hsl(203 87% 15%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #052f4a. 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.0196 G = 0.1843 B = 0.2902
2. max, min, Δ
max = 0.2902 min = 0.0196 Δ = max − min = 0.2706
3. L
L = (max + min) / 2 = 0.1549 = 15.49%
4. S
S = Δ / (1 − |2L − 1|) = 0.8734 = 87.34%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.0196 − 0.1843) / 0.2706 + 4) = 203.48°
6. HSL
hsl(203.48 87.34% 15.49%)
Alle Formate
- HEX
- #052f4a
- RGB
- rgb(5 47 74)
- RGB (legacy)
- rgb(5, 47, 74)
- HSL
- hsl(203.48 87.34% 15.49%) → hsl(203 87% 15%)
- HWB
- hwb(203 2% 71%)
- OKLCH
- oklch(0.293 0.066 242.9) · oklch(29.3% 0.066 242.9)
- OKLab
- oklab(0.293 -0.030 -0.059)
- Lab (D50)
- lab(17.86 -5.41 -21.05)
- LCH (D50)
- lch(17.86 21.74 255.57)
- Display P3
- color(display-p3 0.0727 0.1812 0.2816)
- Linear sRGB
- color(srgb-linear 0.0015 0.0284 0.0685)
Gamut: sRGB und Display P3
#052F4A 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.071, Display P3 von 0.092; diese Farbe nutzt 93 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #052f4a;
color: rgb(5 47 74);
color: hsl(203 87% 15%);
color: oklch(0.293 0.066 242.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.293 0.066 242.9);
}
/* arbitrary values */
class="text-[#052f4a] bg-[oklch(0.293_0.066_242.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.0727 0.1812 0.2816); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #052f4a calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 sky-950#082F49
- cyan-950#053345
- v3 cyan-950#083344
- slate-800#1D293D
- v3 slate-800#1E293B
- gray-800#1E2939
- v3 gray-800#1F2937
- v3 blue-950#172554
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #183F5B · oklch(0.353 0.066 242.9) · ΔL +0.06
- #00203A · oklch(0.233 0.066 242.9) · ΔL −0.06