Color contrast
Sufficient color contrast allows people to clearly see content on the page.
Color Contrast​
The Web Content Accessibility Guidelines recommends a color contrast of 4.5:1 to meet color contrast guidelines. You can use various color contrast checkers online to verify your color contrast ratio. Colour Contrast Analyser and Colour Contrast Check Tool are examples of tools available online.
For the two house icons below, the color contrast has been calculated using the Colour Contrast Analyser. For your exercise below, please use the Colour Contrast Check Tool to enter the background (#405865) and foreground (#FFFFFF) values specified here. The tool will show you the color contrast ratio. Please replace the 'x' below with the contrast of the third icon, e.g., <span id='contrastValue'>2000</span>
.
Background Color: #405865
Foreground Color: #FFFFFF
Color Contrast -- x :1