HSL in HEX: #3B82F6
Auch bekannt als: Tailwind v3 blue-500
Ergebnis
hsl(217.22 91.22% 59.80%) → #3B82F6
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #3b82f6. 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 = 217.22°, S = 91.22%, L = 59.80%
2. C
C = (1 − |2L − 1|) × S = 0.73341
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.27845 (H / 60° = 3.6203, sector 3)
4. m
m = L − C / 2 = 0.23130
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.27845, 0.73341) R = round((0.00000 + 0.23130) × 255) = 59 G = round((0.27845 + 0.23130) × 255) = 130 B = round((0.73341 + 0.23130) × 255) = 246
6. RGB → HEX
#3B82F6
Alle Formate
- HEX
- #3b82f6
- RGB
- rgb(59 130 246)
- RGB (legacy)
- rgb(59, 130, 246)
- HSL
- hsl(217.22 91.22% 59.80%) → hsl(217 91% 60%)
- HWB
- hwb(217 23% 4%)
- OKLCH
- oklch(0.623 0.188 259.8) · oklch(62.3% 0.188 259.8)
- OKLab
- oklab(0.623 -0.033 -0.185)
- Lab (D50)
- lab(54.62 8.76 -65.79)
- LCH (D50)
- lch(54.62 66.37 277.59)
- Display P3
- color(display-p3 0.3047 0.5035 0.9338)
- Linear sRGB
- color(srgb-linear 0.0437 0.2232 0.9216)
Gamut: sRGB und Display P3
#3B82F6 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.204, Display P3 von 0.219; diese Farbe nutzt 92 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #3b82f6;
color: rgb(59 130 246);
color: hsl(217 91% 60%);
color: oklch(0.623 0.188 259.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.623 0.188 259.8);
}
/* arbitrary values */
class="text-[#3b82f6] bg-[oklch(0.623_0.188_259.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.3047 0.5035 0.9338); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #3b82f6 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- blue-500#2B7FFF
- dodgerblue#1E90FF
- sky-600#0084D1
- royalblue#4169E1
- cornflowerblue#6495ED
- v3 indigo-500#6366F1
- indigo-400#7C86FF
- v3 sky-600#0284C7
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #4E95FF · oklch(0.683 0.188 259.8) · ΔL +0.06
- #286FE1 · oklch(0.563 0.188 259.8) · ΔL −0.06