hexcolors

Color combinations / Blue and Purple

Blue and Purple color combination

These colors are a moderate distance apart on the wheel, giving a balanced but distinct pairing.

Do they work together?

Not for text. The ratio is 1.10:1, which fails WCAG AA. Use them for shapes and decoration instead, or adjust one color.

Contrast is the same in both directions. Check other pairs in the contrast checker.

See it in use

Purple text on blue

The quick brown fox jumps over the lazy dog.

Blue text on purple

The quick brown fox jumps over the lazy dog.

Make the pair accessible

Keep the hue and adjust lightness until body text passes 4.5:1.

Copy the colors

--blue: #0000ff;
--purple: #800080;

More with blue

Common questions

Do blue and purple go well together?

These colors are a moderate distance apart on the wheel, giving a balanced but distinct pairing. Not for text. The ratio is 1.10:1, which fails WCAG AA. Use them for shapes and decoration instead, or adjust one color.

What are the hex codes for blue and purple?

Blue is #0000FF and Purple is #800080.

Can I use blue text on purple?

Not for text. The ratio is 1.10:1, which fails WCAG AA. Use them for shapes and decoration instead, or adjust one color.