Skip to content
Color Codes

CSS named color

MediumBlue Color Code

MediumBlue is a medium, vivid blue with the hex code #0000CD. In RGB it is rgb(0, 0, 205), in HSL hsl(240, 100%, 40%) and in CMYK cmyk(100%, 100%, 0%, 20%).

MediumBlue
#0000CD

Color values

In CSS you can write it as the keyword mediumblue.

White text on MediumBlue has a contrast ratio of 11.16:1 and black text 1.88:1, so white text is the more readable choice.

The closest Tailwind CSS color is Blue 800 (#1E40AF).

Use MediumBlue in CSS

.element {
  color: mediumblue;
  background-color: #0000cd;
  border-color: rgb(0, 0, 205);
}

Tints and shades of MediumBlue

Ten steps from light to dark at the same hue. Click any swatch to copy it.

Colors that go with MediumBlue

Color-wheel harmonies built from #0000CD. Click a swatch to copy it or open the set in the color wheel.

Complementary

Open in color wheel

Opposite hues for maximum contrast and energetic accents.

Neighboring hues for calm, cohesive surfaces.

Three evenly spaced hues for balanced, colorful systems.

Split complementary

Open in color wheel

A base plus the two neighbors of its complement — contrast with less tension.

Text contrast on MediumBlue

Aa
White text
11.16:1
AAA
Aa
Black text
1.88:1
Fail
Check in the contrast checker

Colors similar to MediumBlue

Questions about MediumBlue

What is the hex code for MediumBlue?

The hex code for MediumBlue is #0000CD. Its RGB value is rgb(0, 0, 205) and its HSL value is hsl(240, 100%, 40%).

What colors go with MediumBlue?

The complementary color of MediumBlue is #CCCC00. For a softer scheme try the analogous colors #0066CC and #6600CC; for a balanced three-color scheme use the triadic colors #CC0000 and #00CC00.

Is MediumBlue readable as a text color?

On a white background MediumBlue has a contrast ratio of 11.16:1, which passes WCAG AA for normal text (4.5:1). On black it reaches 1.88:1.

More blue colors