Medium blue
Medium blue is a vivid shade of blue. Hex code #0000CD.
Medium blue color codes
- CSS name
mediumblue - HEX
#0000CD - RGB
rgb(0, 0, 205) - HSL
hsl(240, 100%, 40%) - OKLCH
oklch(38.3% 0.266 264.1)
HSB and CMYK values
- HSB / HSV
hsb(240, 100%, 80%) - CMYK
C100 M100 Y0 K20
White text
11.16:1 · passes WCAG AAA
Black text
1.88:1 · fails WCAG
Shades of medium blue
A darker shade of medium blue is #000073 (800), and a lighter one is #0F4BFC (500).
Colors that go with medium blue
Complementary
Analogous
Triadic
The complementary color of medium blue is #CDCD00.
Click a color to copy its hex code.
Colors similar to medium blue
- Blue#0000FF
Lighter, more vivid
- Dark blue#00008B
Darker, more muted
- Navy#000080
Darker, more muted
- Midnight blue#191970
Darker, much more muted
- Dark slate blue#483D8B
Slightly lighter, more purple, much more muted
- Indigo#4B0082
Slightly darker, more purple, more muted
Each compared with medium blue.
About this color
Medium blue in CSS and design
Medium blue is one of the extended color keywords, which mostly go back to the X11 color names of Unix systems. These four lines all give the same medium blue:
color: mediumblue;
color: #0000CD;
color: rgb(0, 0, 205);
color: hsl(240, 100%, 40%);Frequently asked questions
What is the hex code for medium blue?
#0000CD. In CSS you can also use the keyword mediumblue, which works in every browser.
What is medium blue in RGB and HSL?
In RGB it is rgb(0, 0, 205) and in HSL hsl(240, 100%, 40%). In CMYK it is about C100 M100 Y0 K20, though printed colors vary with paper and ink.
Should I use black or white text on medium blue?
White text works better: it has a contrast ratio of 11.16:1 and passes WCAG AAA. Black text reaches 1.88:1.
What is the complementary color of medium blue?
#CDCD00. It sits opposite medium blue on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.
Which colors go with medium blue?
For strong contrast, pair it with its complementary color #CDCD00. For a calmer look, combine it with its analogous neighbors #0067CD and #6700CD. The palette generator builds more combinations.