Color combinations / Black and White
Black and White color combination
One of the two is a neutral, which makes this an easy, safe pairing.
Do they work together?
Yes. Black and White have a contrast ratio of 21.00:1, which passes WCAG AA for body text.
Contrast is the same in both directions. Check other pairs in the contrast checker.
See it in use
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
Copy the colors
--black: #000000; --white: #ffffff;
More with black
Common questions
Do black and white go well together?
One of the two is a neutral, which makes this an easy, safe pairing. Yes. Black and White have a contrast ratio of 21.00:1, which passes WCAG AA for body text.
What are the hex codes for black and white?
Black is #000000 and White is #FFFFFF.
Can I use black text on white?
Yes. Black and White have a contrast ratio of 21.00:1, which passes WCAG AA for body text.