OKLCH Studio · Tailwind v3 → v4

Tailwind blue-800: v3 #1e40af vs v4 oklch(0.424 0.199 265.6)

Subtle shiftIn v4, blue-800 is more saturated than in v3 (ΔL 0.000, ΔC +0.018, ΔH 0.0°).

Tailwind v3#1e40af
Tailwind v4oklch(0.424 0.199 265.6)
Tailwind blue-800 values in v3 and v4
v3 hex#1e40af
v3 as oklch()oklch(0.424 0.181 265.6)
v4 oklch()oklch(0.424 0.199 265.6)
v4 hex#193CB8
ΔE-OK (×100)1.81
ΔL (v4 − v3)0
ΔC (v4 − v3)0.018
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #1e40af;

// tailwind.config.js (v3)
colors.blue[800] // #1e40af

Tailwind v4 @theme token

@theme {
  --color-blue-800: oklch(0.424 0.199 265.6);
}

.example {
  color: var(--color-blue-800);
}

Keep the v3 colour in v4

@theme {
  --color-blue-800: #1e40af;
}

Related

← All Tailwind v3 to v4 colors