Medium Blue #0000CD

Medium Blue color (#0000CD)

Medium Blue is one of the 148 CSS named colors. Use the keyword mediumblue anywhere CSS accepts a color, or its hex code #0000CD, which is rgb(0, 0, 205) in RGB.

It is a dark, vivid cool color with a hue angle of 240° on the HSL color wheel and a perceived lightness of 38% in OKLCH. On a medium blue background, white text gives the higher contrast at 11.16:1, which passes WCAG AA for normal text.

Medium Blue color codes

CSS name mediumblue
HEX #0000CD
HEX (8-digit) #0000CDFF
RGB rgb(0, 0, 205)
HSL hsl(240, 100%, 40%)
HSV / HSB hsv(240, 100%, 80%)
OKLCH oklch(38.3% 0.2657 264.1)
CMYK cmyk(100%, 100%, 0%, 19.6%)

Contrast with white and black

WCAG 2 contrast ratios and APCA lightness contrast (Lc) for medium blue used as text and as a background.

Aa Sample text
Medium Blue text on white
11.16:1 WCAG Lc 92.4 APCA Passes AA
Aa Sample text
Medium Blue text on black
1.88:1 WCAG Lc -10 APCA Fails AA
Aa Sample text
White text on medium blue
11.16:1 WCAG Lc -96.6 APCA Passes AA
Aa Sample text
Black text on medium blue
1.88:1 WCAG Lc 11.5 APCA Fails AA

Tints and shades of medium blue

Tints mix medium blue with white; shades mix it with black, in 10% steps. Click a swatch to copy it, or build custom scales in the tint & shade generator.

Tints

Shades

Colors that go with medium blue

Harmonies calculated on the HSL color wheel. Explore more in the color scheme generator.

Complementary

Analogous

Triadic

Split-Complementary

Medium Blue with color blindness

Approximately how medium blue appears with each type of color vision deficiency. Test full designs with the color blindness simulator.

Using medium blue in CSS

.element {
  color: mediumblue;
  background-color: #0000cd;
  border-color: rgb(0 0 205 / 50%);
  outline-color: oklch(38.3% 0.2657 264.1);
}

Similar named colors

See all shades of blue or browse every CSS color name.

Related tools