Medium Blue Color

HEX #0000CD · rgb(0, 0, 205) · hsl(240, 100%, 40%)

Medium Blue color codes

Medium Blue is one of the named colors every browser understands. In CSS you can write it as mediumblue or #0000CD.

FormatValue
HEX#0000CD
RGBrgb(0, 0, 205)
HSLhsl(240, 100%, 40%)
CMYK100%, 100%, 0%, 20%
CSS namemediumblue
.example {
  color: mediumblue;
  background-color: #0000CD;
  border-color: rgb(0, 0, 205);
}

Colors that go with medium blue

These harmonies keep the same saturation and lightness and rotate the hue around the color wheel.

#CDCD00Complementary
#0067CDAnalogous
#6700CDAnalogous
#CD0000Triadic
#00CD00Triadic

Tints and shades of medium blue

Tints mix the color with white; shades mix it with black.

#E6E6FA90% white
Lavender
#BFBFF375% white
#9999EB60% white
#7373E445% white
#4D4DDC30% white
#2626D515% white
#0000CDBase
Medium Blue
#0000AE15% black
#00009030% black
#00007145% black
#00005260% black
#00003375% black
#00001590% black

Contrast and readability

Black text
1.88:1
fails
White text
11.16:1
passes AA and AAA

Use white text on medium blue. Ratios follow the WCAG 2 formula; AA needs 4.5:1 for normal text and 3:1 for large text.

Frequently asked questions

What is the hex code for medium blue?

The hex code for medium blue is #0000CD.

What is the RGB value of medium blue?

Medium Blue is rgb(0, 0, 205): 0 red, 0 green and 205 blue on a 0 to 255 scale.

What color goes with medium blue?

Its complementary color is #CDCD00, which is closest to the named color gold. Analogous and triadic matches are listed on this page.

Should text on medium blue be black or white?

Use white text. The contrast ratio is 1.88:1 with black and 11.16:1 with white. WCAG AA asks for at least 4.5:1 for normal text.

Similar named colors

Pick any other color with the color picker, or browse all named colors.