HEX in OKLCH: #193CB8
Auch bekannt als: Tailwind blue-800
Ergebnis
#193CB8 → oklch(0.424 0.198 265.5)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #193cb8. 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. sRGB → linear
R: 25/255 = 0.09804 → 0.009721 (((x + 0.055) / 1.055)^2.4) G: 60/255 = 0.23529 → 0.045186 (((x + 0.055) / 1.055)^2.4) B: 184/255 = 0.72157 → 0.479320 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.052901 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.084296 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.315550
3. cube root
l′ = ∛0.052901 = 0.375395 m′ = ∛0.084296 = 0.438465 s′ = ∛0.315550 = 0.680805
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.42421 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.01556 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.19761
5. Oklab → OKLCH
C = √(a² + b²) = 0.19822 H = atan2(b, a) = 265.499° L = 0.42421
6. OKLCH
oklch(0.42421 0.19822 265.499) rounded: oklch(0.424 0.198 265.5)
Alle Formate
- HEX
- #193cb8
- RGB
- rgb(25 60 184)
- RGB (legacy)
- rgb(25, 60, 184)
- HSL
- hsl(226.79 76.08% 40.98%) → hsl(227 76% 41%)
- HWB
- hwb(227 10% 28%)
- OKLCH
- oklch(0.424 0.198 265.5) · oklch(42.4% 0.198 265.5)
- OKLab
- oklab(0.424 -0.016 -0.198)
- Lab (D50)
- lab(30.31 27.39 -69.98)
- LCH (D50)
- lch(30.31 75.15 291.38)
- Display P3
- color(display-p3 0.1334 0.2321 0.6943)
- Linear sRGB
- color(srgb-linear 0.0097 0.0452 0.4793)
Gamut: sRGB und Display P3
#193CB8 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.290, Display P3 von 0.290; diese Farbe nutzt 68 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #193cb8;
color: rgb(25 60 184);
color: hsl(227 76% 41%);
color: oklch(0.424 0.198 265.5);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.424 0.198 265.5);
}
/* arbitrary values */
class="text-[#193cb8] bg-[oklch(0.424_0.198_265.5)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1334 0.2321 0.6943); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #193cb8 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 blue-800#1E40AF
- indigo-800#372AAC
- v3 indigo-800#3730A3
- v3 indigo-700#4338CA
- v3 blue-700#1D4ED8
- indigo-700#432DD7
- blue-900#1C398E
- v3 blue-900#1E3A8A
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #2750CC · oklch(0.484 0.198 265.5) · ΔL +0.06
- #0D27A4 · oklch(0.364 0.198 265.5) · ΔL −0.06