HSL in HEX: #2F4F4F
Auch bekannt als: CSS darkslategray, CSS darkslategrey
Ergebnis
hsl(180.00 25.40% 24.71%) → #2F4F4F
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #2f4f4f. 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 = 180.00°, S = 25.40%, L = 24.71%
2. C
C = (1 − |2L − 1|) × S = 0.12553
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.12553 (H / 60° = 3.0000, sector 3)
4. m
m = L − C / 2 = 0.18434
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.12553, 0.12553) R = round((0.00000 + 0.18434) × 255) = 47 G = round((0.12553 + 0.18434) × 255) = 79 B = round((0.12553 + 0.18434) × 255) = 79
6. RGB → HEX
#2F4F4F
Alle Formate
- HEX
- #2f4f4f
- RGB
- rgb(47 79 79)
- RGB (legacy)
- rgb(47, 79, 79)
- HSL
- hsl(180.00 25.40% 24.71%) → hsl(180 25% 25%)
- HWB
- hwb(180 18% 69%)
- OKLCH
- oklch(0.403 0.038 195.8) · oklch(40.3% 0.038 195.8)
- OKLab
- oklab(0.403 -0.036 -0.010)
- Lab (D50)
- lab(31.14 -12.26 -3.94)
- LCH (D50)
- lch(31.14 12.88 197.80)
- Display P3
- color(display-p3 0.2129 0.3066 0.3081)
- Linear sRGB
- color(srgb-linear 0.0284 0.0782 0.0782)
Gamut: sRGB und Display P3
#2F4F4F 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.069, Display P3 von 0.092; diese Farbe nutzt 55 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #2f4f4f;
color: rgb(47 79 79);
color: hsl(180 25% 25%);
color: oklch(0.403 0.038 195.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.403 0.038 195.8);
}
/* arbitrary values */
class="text-[#2f4f4f] bg-[oklch(0.403_0.038_195.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2129 0.3066 0.3081); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #2f4f4f calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 teal-900#134E4A
- teal-900#0B4F4A
- mist-700#394447
- v3 cyan-900#164E63
- cyan-900#104E64
- olive-700#474739
- v3 gray-700#374151
- v3 teal-800#115E59
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #3F6060 · oklch(0.463 0.038 195.8) · ΔL +0.06
- #1F3F3F · oklch(0.343 0.038 195.8) · ΔL −0.06