Swatchproof

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 keywordblue
HEX#0000FF
RGBrgb(0 0 255)
HSLhsl(240 100% 50%)
OKLCHoklch(45.2% 0.313 264.1)
White text8.59:1 · body text AA Pass
Black text2.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.

ColourHEXContrast with BlueBody text AA
Yellow#FFF2007.35:1Pass
Lemon Yellow#F8ED437.03:1Pass
Seashell Pink#FDD4BD6.27:1Pass
Pale King's Blue#A7D4E45.39:1Pass
Cream Yellow#FDBF685.25:1Pass
Cobalt Green#96D1AA4.91:1Pass
Orange Yellow#FCB3154.75:1Pass
Yellow Ocher#E2B5404.47:1Fail
Yellow Orange#F99D1B4.04:1Fail
Ochraceous Salmon#D8A37B3.86:1Fail
Warm Gray#A1A39A3.36:1Fail
Light Brown Drab#B593923.09:1Fail
Lilac#B984AF2.86:1Fail
Benzol Green#00978D2.38:1Fail
Aconite Violet#A36AA52.11:1Fail
Eupatorium Purple#BF58922.06:1Fail
Dull Violet Black#1E0E3F2.05:1Fail
Spectrum Red#E31F261.84:1Fail
Burnt Sienna#AE52241.65:1Fail
Carmine#CC12361.52:1Fail
Carmine Red#A62C371.24:1Fail
Hay's Russet#7933271.06:1Fail

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

: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

Similar CSS colours