Swatchproof

Medium blue #0000CD

Medium blue is one of the named colours in CSS, written mediumblue. White text reaches 11.16:1 on it, enough for body text.

Try on walls Preview on a website

Colour codes

CSS keywordmediumblue
HEX#0000CD
RGBrgb(0 0 205)
HSLhsl(240 100% 40%)
OKLCHoklch(38.3% 0.266 264.1)
White text11.16:1 · body text AA Pass
Black text1.88:1 · body text AA Fail

Colours that go with Medium blue

The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Deep Lyons Blue (#1C4286), the nearest, though visibly different. These are the colours Wada paired it with, ranked by their contrast with Medium blue itself.

ColourHEXContrast with Medium blueBody text AA
Yellow#FFF2009.54:1Pass
Apricot Yellow#FFDD008.29:1Pass
Ivory Buff#EBD3A27.64:1Pass
Cinnamon Buff#FDC57E7.16:1Pass
Cameo Pink#E0B3B66.00:1Pass
Yellow Ocher#E2B5405.80:1Pass
Golden Yellow#F3A2575.38:1Pass
Eosine Pink#F37F944.40:1Fail
Khaki#BC892B3.59:1Fail
Benzol Green#00978D3.09:1Fail
Raw Sienna#BB71252.92:1Fail
Aconite Violet#A36AA52.74:1Fail
Red Orange#DD40272.57:1Fail
Light Brownish Olive#806E4B2.26:1Fail
Ochre Red#AB544D2.18:1Fail
Diamine Green#1A74441.93:1Fail
Purple Drab#84565B1.84:1Fail
Black#1113141.67:1Fail
Hay's Russet#7933271.23:1Fail
Dusky Madder Violet#4E1D4C1.17:1Fail

Palettes with Deep Lyons Blue

Shades and tints of Medium blue

Nine lightness steps in OKLCH that keep the hue of Medium blue. Chroma is reduced only where sRGB cannot show it.

:root {
  --mediumblue-100: #F0F5FF;
  --mediumblue-200: #D8E5FF;
  --mediumblue-300: #B6CEFF;
  --mediumblue-400: #89B0FF;
  --mediumblue-500: #588CFF;
  --mediumblue-600: #205CFF;
  --mediumblue-700: #0030E4;
  --mediumblue-800: #001FA3;
  --mediumblue-900: #001066;
}

Text that keeps Medium blue on screen

Text #0000CD on #F0F5FF reaches 10.21:1, which passes WCAG AA for body text. Check it on a dashboard

Similar CSS colours