Royal blue #4169E1
Royal blue is one of the named colours in CSS, written royalblue. White text reaches 4.85:1 on it, enough for body text.
Try on walls Preview on a website
Colour codes
| CSS keyword | royalblue |
|---|---|
| HEX | #4169E1 |
| RGB | rgb(65 105 225) |
| HSL | hsl(225 73% 57%) |
| OKLCH | oklch(56.0% 0.188 266.4) |
| White text | 4.85:1 · body text AA Pass |
| Black text | 4.33:1 · body text AA Fail |
Colours that go with Royal 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 Royal blue itself.
| Colour | HEX | Contrast with Royal blue | Body text AA |
|---|---|---|---|
| Yellow | #FFF200 | 4.14:1 | Fail |
| Lemon Yellow | #F8ED43 | 3.97:1 | Fail |
| Dull Violet Black | #1E0E3F | 3.64:1 | Fail |
| Seashell Pink | #FDD4BD | 3.54:1 | Fail |
| Pale King's Blue | #A7D4E4 | 3.04:1 | Fail |
| Cream Yellow | #FDBF68 | 2.96:1 | Fail |
| Cobalt Green | #96D1AA | 2.77:1 | Fail |
| Orange Yellow | #FCB315 | 2.68:1 | Fail |
| Yellow Ocher | #E2B540 | 2.52:1 | Fail |
| Yellow Orange | #F99D1B | 2.28:1 | Fail |
| Ochraceous Salmon | #D8A37B | 2.18:1 | Fail |
| Warm Gray | #A1A39A | 1.90:1 | Fail |
| Hay's Russet | #793327 | 1.87:1 | Fail |
| Light Brown Drab | #B59392 | 1.74:1 | Fail |
| Lilac | #B984AF | 1.61:1 | Fail |
| Carmine Red | #A62C37 | 1.43:1 | Fail |
| Benzol Green | #00978D | 1.34:1 | Fail |
| Aconite Violet | #A36AA5 | 1.19:1 | Fail |
| Carmine | #CC1236 | 1.17:1 | Fail |
| Eupatorium Purple | #BF5892 | 1.16:1 | Fail |
| Burnt Sienna | #AE5224 | 1.07:1 | Fail |
| Spectrum Red | #E31F26 | 1.04: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 Royal blue
Nine lightness steps in OKLCH that keep the hue of Royal blue. Chroma is reduced only where sRGB cannot show it.
- 100#F1F5FF
- 200#D9E5FF
- 300#B8CDFF
- 400#8DAFFF
- 500#5F8AFF
- 600#3E66DE
- 700#2546BB
- 800#10249A
- 900#060071
:root {
--royalblue-100: #F1F5FF;
--royalblue-200: #D9E5FF;
--royalblue-300: #B8CDFF;
--royalblue-400: #8DAFFF;
--royalblue-500: #5F8AFF;
--royalblue-600: #3E66DE;
--royalblue-700: #2546BB;
--royalblue-800: #10249A;
--royalblue-900: #060071;
}
Text that keeps Royal blue on screen
Text #FFFFFF on #4169E1 reaches 4.85:1, which passes WCAG AA for body text. Check it on a dashboard