hexcolors

Color combinations / Blue and Black

Blue and Black color combination

One of the two is a neutral, which makes this an easy, safe pairing.

Do they work together?

Not for text. The ratio is 2.44: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

Black text on blue

The quick brown fox jumps over the lazy dog.

Blue text on black

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;
--black: #000000;

More with blue

Common questions

Do blue and black go well together?

One of the two is a neutral, which makes this an easy, safe pairing. Not for text. The ratio is 2.44:1, which fails WCAG AA. Use them for shapes and decoration instead, or adjust one color.

What are the hex codes for blue and black?

Blue is #0000FF and Black is #000000.

Can I use blue text on black?

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