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.
| Format | Value | |
|---|---|---|
| HEX | #0000CD | |
| RGB | rgb(0, 0, 205) | |
| HSL | hsl(240, 100%, 40%) | |
| CMYK | 100%, 100%, 0%, 20% | |
| CSS name | mediumblue |
.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.
Tints and shades of medium blue
Tints mix the color with white; shades mix it with black.
Lavender
Medium Blue
Contrast and readability
1.88:1
fails
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.