OKLCH Studio · Tailwind v3 → v4
Tailwind blue-500: v3 #3b82f6 vs v4 oklch(0.623 0.214 259.8)
ChangedIn v4, blue-500 is more saturated than in v3 (ΔL 0.000, ΔC +0.026, ΔH 0.0°).
The v4 value is outside the sRGB gamut, so #2B7FFF is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #3b82f6 |
|---|---|
| v3 as oklch() | oklch(0.623 0.188 259.8) |
| v4 oklch() | oklch(0.623 0.214 259.8) |
| v4 hex | #2B7FFF |
| ΔE-OK (×100) | 2.60 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.026 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #3b82f6;
// tailwind.config.js (v3)
colors.blue[500] // #3b82f6Tailwind v4 @theme token
@theme {
--color-blue-500: oklch(0.623 0.214 259.8);
}
.example {
color: var(--color-blue-500);
}Keep the v3 colour in v4
@theme {
--color-blue-500: #3b82f6;
}