Blue #0000FF
Blue is one of the named colours in CSS, written blue. White text reaches 8.59:1 on it, enough for body text.
Try on walls Preview on a website
Colour codes
| CSS keyword | blue |
|---|---|
| HEX | #0000FF |
| RGB | rgb(0 0 255) |
| HSL | hsl(240 100% 50%) |
| OKLCH | oklch(45.2% 0.313 264.1) |
| White text | 8.59:1 · body text AA Pass |
| Black text | 2.44:1 · body text AA Fail |
Colours that go with Blue
The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Blue (#006EB8), the nearest, though visibly different. These are the colours Wada paired it with, ranked by their contrast with Blue itself.
| Colour | HEX | Contrast with Blue | Body text AA |
|---|---|---|---|
| Yellow | #FFF200 | 7.35:1 | Pass |
| Lemon Yellow | #F8ED43 | 7.03:1 | Pass |
| Seashell Pink | #FDD4BD | 6.27:1 | Pass |
| Pale King's Blue | #A7D4E4 | 5.39:1 | Pass |
| Cream Yellow | #FDBF68 | 5.25:1 | Pass |
| Cobalt Green | #96D1AA | 4.91:1 | Pass |
| Orange Yellow | #FCB315 | 4.75:1 | Pass |
| Yellow Ocher | #E2B540 | 4.47:1 | Fail |
| Yellow Orange | #F99D1B | 4.04:1 | Fail |
| Ochraceous Salmon | #D8A37B | 3.86:1 | Fail |
| Warm Gray | #A1A39A | 3.36:1 | Fail |
| Light Brown Drab | #B59392 | 3.09:1 | Fail |
| Lilac | #B984AF | 2.86:1 | Fail |
| Benzol Green | #00978D | 2.38:1 | Fail |
| Aconite Violet | #A36AA5 | 2.11:1 | Fail |
| Eupatorium Purple | #BF5892 | 2.06:1 | Fail |
| Dull Violet Black | #1E0E3F | 2.05:1 | Fail |
| Spectrum Red | #E31F26 | 1.84:1 | Fail |
| Burnt Sienna | #AE5224 | 1.65:1 | Fail |
| Carmine | #CC1236 | 1.52:1 | Fail |
| Carmine Red | #A62C37 | 1.24:1 | Fail |
| Hay's Russet | #793327 | 1.06:1 | Fail |
Palettes with Blue
- Combination #49 Pale King's Blue · Blue
- Combination #51 Carmine Red · Blue
- Combination #88 Seashell Pink · Blue
- Combination #143 Blue · Lilac · Warm Gray
- Combination #154 Carmine · Yellow · Blue
- Combination #186 Hay's Russet · Ochraceous Salmon · Blue
- Combination #191 Light Brown Drab · Yellow Ocher · Blue
- Combination #215 Cream Yellow · Blue · Eupatorium Purple
- Combination #257 Spectrum Red · Orange Yellow · Blue · Aconite Violet
- Combination #267 Cream Yellow · Yellow Orange · Benzol Green · Blue
- Combination #295 Cream Yellow · Yellow · Blue · Dull Violet Black
- Combination #333 Burnt Sienna · Lemon Yellow · Cobalt Green · Blue
Shades and tints of Blue
Nine lightness steps in OKLCH that keep the hue of Blue. Chroma is reduced only where sRGB cannot show it.
- 100#F0F5FF
- 200#D8E5FF
- 300#B6CEFF
- 400#89B0FF
- 500#588CFF
- 600#205CFF
- 700#0030E4
- 800#001FA3
- 900#001066
:root {
--blue-100: #F0F5FF;
--blue-200: #D8E5FF;
--blue-300: #B6CEFF;
--blue-400: #89B0FF;
--blue-500: #588CFF;
--blue-600: #205CFF;
--blue-700: #0030E4;
--blue-800: #001FA3;
--blue-900: #001066;
}
Text that keeps Blue on screen
Text #0000FF on #F0F5FF reaches 7.86:1, which passes WCAG AA for body text. Check it on a dashboard