Swatchproof

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 keywordroyalblue
HEX#4169E1
RGBrgb(65 105 225)
HSLhsl(225 73% 57%)
OKLCHoklch(56.0% 0.188 266.4)
White text4.85:1 · body text AA Pass
Black text4.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.

ColourHEXContrast with Royal blueBody text AA
Yellow#FFF2004.14:1Fail
Lemon Yellow#F8ED433.97:1Fail
Dull Violet Black#1E0E3F3.64:1Fail
Seashell Pink#FDD4BD3.54:1Fail
Pale King's Blue#A7D4E43.04:1Fail
Cream Yellow#FDBF682.96:1Fail
Cobalt Green#96D1AA2.77:1Fail
Orange Yellow#FCB3152.68:1Fail
Yellow Ocher#E2B5402.52:1Fail
Yellow Orange#F99D1B2.28:1Fail
Ochraceous Salmon#D8A37B2.18:1Fail
Warm Gray#A1A39A1.90:1Fail
Hay's Russet#7933271.87:1Fail
Light Brown Drab#B593921.74:1Fail
Lilac#B984AF1.61:1Fail
Carmine Red#A62C371.43:1Fail
Benzol Green#00978D1.34:1Fail
Aconite Violet#A36AA51.19:1Fail
Carmine#CC12361.17:1Fail
Eupatorium Purple#BF58921.16:1Fail
Burnt Sienna#AE52241.07:1Fail
Spectrum Red#E31F261.04:1Fail

Palettes with 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.

: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

Similar CSS colours