HSL in HEX: #0F172A
Auch bekannt als: Tailwind v3 slate-900
Ergebnis
hsl(222.22 47.37% 11.18%) → #0F172A
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #0f172a. 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 = 222.22°, S = 47.37%, L = 11.18%
2. C
C = (1 − |2L − 1|) × S = 0.10592
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.03139 (H / 60° = 3.7037, sector 3)
4. m
m = L − C / 2 = 0.05884
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.03139, 0.10592) R = round((0.00000 + 0.05884) × 255) = 15 G = round((0.03139 + 0.05884) × 255) = 23 B = round((0.10592 + 0.05884) × 255) = 42
6. RGB → HEX
#0F172A
Alle Formate
- HEX
- #0f172a
- RGB
- rgb(15 23 42)
- RGB (legacy)
- rgb(15, 23, 42)
- HSL
- hsl(222.22 47.37% 11.18%) → hsl(222 47% 11%)
- HWB
- hwb(222 6% 84%)
- OKLCH
- oklch(0.208 0.040 265.8) · oklch(20.8% 0.040 265.8)
- OKLab
- oklab(0.208 -0.003 -0.040)
- Lab (D50)
- lab(7.78 1.59 -14.30)
- LCH (D50)
- lch(7.78 14.38 276.34)
- Display P3
- color(display-p3 0.0653 0.0893 0.1592)
- Linear sRGB
- color(srgb-linear 0.0048 0.0086 0.0232)
Gamut: sRGB und Display P3
#0F172A 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.142, Display P3 von 0.142; diese Farbe nutzt 28 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #0f172a;
color: rgb(15 23 42);
color: hsl(222 47% 11%);
color: oklch(0.208 0.040 265.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.208 0.040 265.8);
}
/* arbitrary values */
class="text-[#0f172a] bg-[oklch(0.208_0.040_265.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.0653 0.0893 0.1592); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #0f172a calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- slate-900#0F172B
- gray-900#101828
- v3 gray-900#111827
- mauve-900#1D161E
- zinc-900#18181B
- mist-900#161B1D
- neutral-900#171717
- stone-900#1C1917
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #1D2539 · oklch(0.268 0.040 265.8) · ΔL +0.06
- #04091B · oklch(0.148 0.040 265.8) · ΔL −0.06