RGB in HEX: #334155
Auch bekannt als: Tailwind v3 slate-700
Ergebnis
rgb(51 65 85) → #334155
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #334155. 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. base 10 → base 16
R = 51 = 3×16 + 3 → 33 G = 65 = 4×16 + 1 → 41 B = 85 = 5×16 + 5 → 55
2. pairs → HEX
33 41 55 → #334155
Alle Formate
- HEX
- #334155
- RGB
- rgb(51 65 85)
- RGB (legacy)
- rgb(51, 65, 85)
- HSL
- hsl(215.29 25.00% 26.67%) → hsl(215 25% 27%)
- HWB
- hwb(215 20% 67%)
- OKLCH
- oklch(0.372 0.039 257.3) · oklch(37.2% 0.039 257.3)
- OKLab
- oklab(0.372 -0.009 -0.038)
- Lab (D50)
- lab(26.95 -1.48 -14.02)
- LCH (D50)
- lch(26.95 14.10 263.99)
- Display P3
- color(display-p3 0.2109 0.2533 0.3266)
- Linear sRGB
- color(srgb-linear 0.0331 0.0529 0.0908)
Gamut: sRGB und Display P3
#334155 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.133, Display P3 von 0.170; diese Farbe nutzt 29 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #334155;
color: rgb(51 65 85);
color: hsl(215 25% 27%);
color: oklch(0.372 0.039 257.3);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.372 0.039 257.3);
}
/* arbitrary values */
class="text-[#334155] bg-[oklch(0.372_0.039_257.3)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2109 0.2533 0.3266); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #334155 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- gray-700#364153
- slate-700#314158
- v3 gray-700#374151
- zinc-700#3F3F46
- mist-700#394447
- neutral-700#404040
- mauve-700#463947
- v3 cyan-900#164E63
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #435166 · oklch(0.432 0.039 257.3) · ΔL +0.06
- #243145 · oklch(0.312 0.039 257.3) · ΔL −0.06