Swatchproof

Dark blue #00008B

Dark blue is one of the named colours in CSS, written darkblue. White text reaches 15.30:1 on it, enough for body text.

Try on walls Preview on a website

Colour codes

CSS keyworddarkblue
HEX#00008B
RGBrgb(0 0 139)
HSLhsl(240 100% 27%)
OKLCHoklch(28.8% 0.199 264.1)
White text15.30:1 · body text AA Pass
Black text1.37:1 · body text AA Fail

Colours that go with Dark 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 Dark blue itself.

ColourHEXContrast with Dark blueBody text AA
Yellow#FFF20013.08:1Pass
Apricot Yellow#FFDD0011.36:1Pass
Ivory Buff#EBD3A210.47:1Pass
Cinnamon Buff#FDC57E9.81:1Pass
Cameo Pink#E0B3B68.23:1Pass
Yellow Ocher#E2B5407.95:1Pass
Golden Yellow#F3A2577.37:1Pass
Eosine Pink#F37F946.03:1Pass
Khaki#BC892B4.92:1Pass
Benzol Green#00978D4.23:1Fail
Raw Sienna#BB71254.01:1Fail
Aconite Violet#A36AA53.76:1Fail
Red Orange#DD40273.52:1Fail
Light Brownish Olive#806E4B3.10:1Fail
Ochre Red#AB544D2.99:1Fail
Diamine Green#1A74442.64:1Fail
Purple Drab#84565B2.52:1Fail
Hay's Russet#7933271.69:1Fail
Black#1113141.22:1Fail
Dusky Madder Violet#4E1D4C1.17:1Fail

Palettes with Deep Lyons Blue

Shades and tints of Dark blue

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

:root {
  --darkblue-100: #F0F5FF;
  --darkblue-200: #D8E5FF;
  --darkblue-300: #B5CEFF;
  --darkblue-400: #89B0FF;
  --darkblue-500: #588CFF;
  --darkblue-600: #3266E4;
  --darkblue-700: #1746C1;
  --darkblue-800: #0122A0;
  --darkblue-900: #001066;
}

Text that keeps Dark blue on screen

Text #00008B on #F0F5FF reaches 13.99:1, which passes WCAG AA for body text. Check it on a dashboard

Similar CSS colours