Color Contrast Check

#1877f2 on #f5f5f5

Facebook Blue (#1877f2) text on Light Gray (#f5f5f5)

3.88:1

Large text only

WCAG results for #1877f2 on #f5f5f5

CheckRequiresResult
Normal text — AA 4.5:1 ✗ Fail
Large text — AA 3:1 ✓ Pass
Normal text — AAA 7:1 ✗ Fail
Large text — AAA 4.5:1 ✗ Fail
UI & graphics (non-text) 3:1 ✓ Pass

At 3.88:1, Facebook Blue (#1877f2) on Light Gray (#f5f5f5) falls short of the 4.5:1 needed for normal text, but clears the 3:1 bar for large text (≥24px, or ≥18.66px bold). Use it only for headings or large UI text.

How to fix it

The nearest accessible alternatives that pass AA for normal text:

  • Darken/adjust the text to #0d6ae4 (keeps the #f5f5f5 background) — check it.
  • Or adjust the background to #0d0d0d (keeps the #1877f2 text) — check it.

Open this pair in the contrast checker →

Related color pairs

How contrast ratio is measured

The ratio compares the relative luminance of the text and background, on a scale from 1:1 (no contrast) to 21:1 (black on white). WCAG 1.4.3 requires 4.5:1 for normal text and 3:1 for large text; the stricter AAA level wants 7:1 and 4.5:1. Low contrast is the single most common WCAG failure and a frequent trigger in ADA website lawsuits — but it's also one of the easiest to fix.

Frequently asked questions

Is #1877f2 text on a #f5f5f5 background accessible?

Its contrast ratio is 3.88:1. For normal-size text it fails WCAG 2.1 AA (which requires 4.5:1), but it passes for large text (≥24px, or ≥18.66px bold), which only needs 3:1.

What is the contrast ratio of #1877f2 and #f5f5f5?

Exactly 3.88:1, computed with the WCAG relative-luminance formula. The maximum possible ratio is 21:1 (black on white).

Does #1877f2 on #f5f5f5 pass WCAG AAA?

For normal text, AAA requires 7:1, so this pair does not pass AAA. For large text, AAA requires 4.5:1, which it does not pass.

Contrast is one of ~50 WCAG checks

Fixing color is a great start, but automated tools catch only 30–40% of accessibility issues. Get a free human-led scan of what a contrast check can't see.