Kerbly

White on tailwind blue-500 #3b82f6: 3.68:1 contrast

A very common button colour in Tailwind projects.

Your colours

#ffffff · rgb(255, 255, 255) · hsl(0, 0%, 100%)

#3b82f6 · rgb(59, 130, 246) · hsl(217, 91%, 60%)

Try an example

Result

3.68:1

Passes only for large text and UI parts

Contrast ratio 3.68 to 1. Passes only for large text and UI parts.

  • AA, normal text

    Needs 4.5:1 · Body text and most labels. The level most laws and policies ask for.

    Fail
  • AA, large text

    Needs 3:1 · Text from 24px, or 18.66px and bold.

    Pass
  • AAA, normal text

    Needs 7:1 · The enhanced level. Worth aiming for on long reading.

    Fail
  • AAA, large text

    Needs 4.5:1 · Large text at the enhanced level.

    Fail
  • Buttons, icons and borders

    Needs 3:1 · Parts of controls and graphics you need to see (WCAG 2.2, 1.4.11).

    Pass

Fix it: the closest colours that pass

Same hue, smallest change. Pick one to try it in the preview above.

Change the text colour

  • Darker text: #1d1d1d

    4.58:1 · keeps the same hue, moves 89 points of lightness

Or change the background

  • Darker background: #1e6ff5

    4.52:1 · keeps the same hue, moves 6 points of lightness

How it looks with colour-blindness

About 1 in 12 men and 1 in 200 women have some form of colour-vision deficiency. These previews are an approximation, and the ratio is measured on the simulated colours.

  • Protanopia

    No red cones. Reds look dark and muddy.

    3.24:1Below AA
  • Deuteranopia

    No green cones. The most common type.

    4.01:1Below AA
  • Tritanopia

    No blue cones. Rare. Blues and yellows blur together.

    3.22:1Below AA
  • Greyscale

    No colour at all. Only lightness is left.

    3.69:1Below AA

The short answer

White on tailwind blue-500 #3b82f6 has a contrast ratio of 3.68:1. That is below the 4.5:1 needed for normal text, so it fails AA for body copy. It does pass for large text (24px, or 18.66px bold) and for the visible parts of buttons and icons, which need 3:1.

Colours that pass instead

These are the smallest changes that reach 4.5:1 and keep the same hue, so the look stays close to what you had.

Questions about this pair

Is white on tailwind blue-500 #3b82f6 accessible?

White on tailwind blue-500 #3b82f6 has a contrast ratio of 3.68:1. That is below the 4.5:1 needed for normal text, so it fails AA for body copy. It does pass for large text (24px, or 18.66px bold) and for the visible parts of buttons and icons, which need 3:1.

Can I use white on tailwind blue-500 #3b82f6 for body text?

No. Body text needs 4.5:1 for AA and this pair reaches 3.68:1. Changing the text to #1d1d1d gets it to 4.58:1.

Can I use it for large headings, buttons or icons?

Yes. Large text and the visible parts of buttons, icons and borders need 3:1, and this pair has 3.68:1. Keep small text on other colours.

Other combinations people check

Open the full contrast checker to test your own colours or a whole palette.

See how your whole site does

A free scan checks every page element against WCAG 2.2, colours included, and explains each fix in plain English.

No account needed. Takes about 30 seconds.