RGB in HEX: #162456
Auch bekannt als: Tailwind blue-950
Ergebnis
rgb(22 36 86) → #162456
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #162456. 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 = 22 = 1×16 + 6 → 16 G = 36 = 2×16 + 4 → 24 B = 86 = 5×16 + 6 → 56
2. pairs → HEX
16 24 56 → #162456
Alle Formate
- HEX
- #162456
- RGB
- rgb(22 36 86)
- RGB (legacy)
- rgb(22, 36, 86)
- HSL
- hsl(226.88 59.26% 21.18%) → hsl(227 59% 21%)
- HWB
- hwb(227 9% 66%)
- OKLCH
- oklch(0.281 0.092 268.1) · oklch(28.1% 0.092 268.1)
- OKLab
- oklab(0.281 -0.003 -0.092)
- Lab (D50)
- lab(15.53 9.30 -32.80)
- LCH (D50)
- lch(15.53 34.09 285.83)
- Display P3
- color(display-p3 0.0981 0.1397 0.3248)
- Linear sRGB
- color(srgb-linear 0.0080 0.0176 0.0931)
Gamut: sRGB und Display P3
#162456 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.187, Display P3 von 0.188; diese Farbe nutzt 49 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #162456;
color: rgb(22 36 86);
color: hsl(227 59% 21%);
color: oklch(0.281 0.092 268.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.281 0.092 268.1);
}
/* arbitrary values */
class="text-[#162456] bg-[oklch(0.281_0.092_268.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.0981 0.1397 0.3248); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #162456 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 blue-950#172554
- v3 indigo-950#1E1B4B
- indigo-950#1E1A4D
- sky-950#052F4A
- v3 sky-950#082F49
- slate-800#1D293D
- midnightblue#191970
- v3 slate-800#1E293B
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #243468 · oklch(0.341 0.092 268.1) · ΔL +0.06
- #091445 · oklch(0.221 0.092 268.1) · ΔL −0.06