A contrast ratio is a number that represents the difference between dark and light on a screen. If you take the darkest black and the brightest white and compare the luminosity, that's how you'll end up with your contrast ratio.