Blue to Red gradient and UI scale

Edit in sandbox

CSS linear-gradient

linear-gradient(135deg in oklch, oklch(0.64 0.12 225), oklch(0.64 0.12 15))

Sandbox

Open Blue to Red in the blender

Drag the two orbs if you want a different mix. The theme on the homepage follows this pair.

Open sandbox

Sample card

Blue to Red

PlaySkipLow spaceRemove

WCAG AA 17.28:1

50 to 900 blue scale

  1. 50

    oklch(0.97 0.01 225)

  2. 100

    oklch(0.93 0.02 225)

  3. 200

    oklch(0.86 0.06 225)

  4. 300

    oklch(0.76 0.09 225)

  5. 400

    oklch(0.66 0.08 225)

  6. 500

    oklch(0.55 0.06 225)

  7. 600

    oklch(0.46 0.05 225)

  8. 700

    oklch(0.38 0.04 225)

  9. 800

    oklch(0.30 0.04 225)

  10. 900

    oklch(0.24 0.03 225)

How Blue to Red is built

Hue distance

Blue to Red sets Blue against Red, 150° apart on the OKLCH hue wheel.

Contrast

Text on the page background measures 17.3:1. The same text on the card surface measures 15.4:1. Both clear the WCAG AA line of 4.5:1.

Using the scale

Paint the hero with the Blue to Red gradient, then use the Blue scale for controls and the neutral tokens for cards.

Related gradients