Accessible blue color palette
The most common brand colour for links, buttons and banks.
Your brand colour
Try an example
What your colour can do
#2563eb
Sits at step 600 of your scale
- ✓ PassWhite text on your colour: 5.17:1. Fine for buttons and banners.
- ✕ FailBlack text on your colour: 4.06:1. Dark text is too faint here.
Your colour scale
Eleven steps from very light to very dark, evenly spaced to the eye. Each tile shows the text colour that reads best on it.
50
#f3f7ff
Black 19.56
100
#e4edff
Black 17.86
200
#c8dbff
Black 15.03
300
#a5c4ff
Black 11.94
400
#78a6ff
Black 8.7
500
#4a85ff
Black 6.09
600 (your colour)
#2563eb
White 5.17
700
#144cca
White 7.2
800
#0838a1
White 10.04
900
#022578
White 13.65
950
#00124d
White 17.59
See the contrast numbers for every step
| Step | Colour | On white | On dark (#111111) |
|---|---|---|---|
| 50 | #f3f7ff | 1.07:1 ✕ | 17.59:1 ✓ AA |
| 100 | #e4edff | 1.18:1 ✕ | 16.06:1 ✓ AA |
| 200 | #c8dbff | 1.4:1 ✕ | 13.52:1 ✓ AA |
| 300 | #a5c4ff | 1.76:1 ✕ | 10.74:1 ✓ AA |
| 400 | #78a6ff | 2.41:1 ✕ | 7.82:1 ✓ AA |
| 500 | #4a85ff | 3.45:1 large text only | 5.48:1 ✓ AA |
| 600 (yours) | #2563eb | 5.17:1 ✓ AA | 3.65:1 large text only |
| 700 | #144cca | 7.2:1 ✓ AA | 2.62:1 ✕ |
| 800 | #0838a1 | 10.04:1 ✓ AA | 1.88:1 ✕ |
| 900 | #022578 | 13.65:1 ✓ AA | 1.38:1 ✕ |
| 950 | #00124d | 17.59:1 ✓ AA | 1.07:1 ✕ |
Safe pairs to use
Picked from your scale so each one passes WCAG, with the ratio shown.
- Book now
Button with white text
The lightest step that still gives white text 4.5:1.
White on 6005.17:1 ✓ Pass
- Read the details
Links and text on white
Coloured text on a white page needs 4.5:1 too.
600 on white5.17:1 ✓ Pass
- Read the details
Links on a dark background
For dark mode or dark sections. The darkest step that still reads on near-black.
500 on dark5.48:1 ✓ Pass
- Input with a border
Borders, icons and focus rings
Parts of controls need 3:1 against what they sit on (WCAG 1.4.11).
500 on white3.45:1 ✓ Pass
- Callout text
Text on a light tint
Callouts and badges: a very light background with a dark step for the text.
950 on 5016.39:1 ✓ Pass
Take it with you
:root {
--blue-50: #f3f7ff;
--blue-100: #e4edff;
--blue-200: #c8dbff;
--blue-300: #a5c4ff;
--blue-400: #78a6ff;
--blue-500: #4a85ff;
--blue-600: #2563eb;
--blue-700: #144cca;
--blue-800: #0838a1;
--blue-900: #022578;
--blue-950: #00124d;
}
The short answer
Blue (#2563eb) works with white text. The ratio is 5.17:1, above the 4.5:1 that WCAG AA asks for, so you can use it as a button or banner colour with white lettering.
Blue shades and their contrast
| Step | Colour | On white | On dark |
|---|---|---|---|
| 50 | #f3f7ff | 1.07:1 ✕ | 17.59:1 ✓ AA |
| 100 | #e4edff | 1.18:1 ✕ | 16.06:1 ✓ AA |
| 200 | #c8dbff | 1.4:1 ✕ | 13.52:1 ✓ AA |
| 300 | #a5c4ff | 1.76:1 ✕ | 10.74:1 ✓ AA |
| 400 | #78a6ff | 2.41:1 ✕ | 7.82:1 ✓ AA |
| 500 | #4a85ff | 3.45:1 large only | 5.48:1 ✓ AA |
| 600 (yours) | #2563eb | 5.17:1 ✓ AA | 3.65:1 large only |
| 700 | #144cca | 7.2:1 ✓ AA | 2.62:1 ✕ |
| 800 | #0838a1 | 10.04:1 ✓ AA | 1.88:1 ✕ |
| 900 | #022578 | 13.65:1 ✓ AA | 1.38:1 ✕ |
| 950 | #00124d | 17.59:1 ✓ AA | 1.07:1 ✕ |
Questions about blue
Does blue work with white text?
Yes. Blue (#2563eb) has a contrast ratio of 5.17:1 with white, which meets the 4.5:1 WCAG AA asks for.
Does black text work on blue?
No. Black on #2563eb is 4.06:1, which is below 4.5:1. Use a lighter or darker shade instead.
Which shade of blue should I use for links on a white page?
Use a step that reaches 4.5:1 on white. For blue that is step 600 (#2563eb), at 5.17:1.
Other colours
Is your live site using these colours well?
A free scan checks every colour pair on your page against WCAG 2.2 and shows what to fix.