Contrast Studio
Check the WCAG contrast ratio of two colours, see which accessibility levels pass, preview the result and get the closest passing colour.
← All tools
Hex (#1e293b, #fff) or rgb(30, 41, 59)
Large sample text
The quick brown fox jumps over the lazy dog. Normal sample text.
Closest passing colours
Ratios use the WCAG 2 formula and are cut off, not rounded up, so 4.49 is shown as 4.49 and fails 4.5. Passing the ratio does not make a design accessible by itself: size, weight, context and colour-blind users matter too. Large text means 24 px or bigger, or 18.7 px or bigger in bold. Suggestions keep the hue and saturation and change only lightness. Everything runs in your browser.