Medium Blue Color Code: Hex #0000CD
The hex code for Medium Blue is #0000CD (the CSS keyword mediumblue). Medium Blue RGB code: rgb(0, 0, 205). The xkcd color survey gives #2C6FBB instead, which looks clearly different; both codes are below with their source.
#0000CDTop: the code browsers use#2C6FBBBelow: compare edge to edgeMedium Blue color codes: each Medium Blue hex code in every format
Sources
Properties
- Hex codes
- 2 different ones in 3 color lists; they look clearly different
- Family
- blue
- Contrast
- 11.16:1 with white, 1.88:1 with black
- CSS keyword
- mediumblue
- Character
- dark, vivid
- Readable text on it
- white (AA)
In the X11 naming, medium blue sits at 80% brightness, between blue at 100% and dark blue at 55%.
A dark, vivid blue with a cool cast. In code, mediumblue gives exactly this web value. If you mean the color as people usually picture the name, the survey value #2C6FBB is closer: it is lighter and more muted.
White text reads best on it; black text does not pass WCAG AA. Its exact opposite on the color wheel cannot be shown on screens, so the complementary palette uses the closest displayable version. Even pale tints keep its hue, which makes it easy to use for soft backgrounds. Next to Blue, its closest named neighbour, it looks darker, more muted and warmer; beside Dark Blue it looks lighter, more vivid and cooler. It is one of the darkest of the blue family here.
Colors that go with Medium Blue
Complementary: the opposite of Medium Blue
#0000CDWhite text 11.16:1#573F00White text 9.92:1#648FEBBlack text 6.67:1#332300White text 15.20:1
Analogous
#004967White text 9.77:1#0000CDWhite text 11.16:1#5100A5White text 11.09:1#8DAEF3Black text 9.48:1
Triadic
#0000CDWhite text 11.16:1#820014White text 10.72:1#00530CWhite text 9.36:1#B7CDF9Black text 13.11:1
Monochrome
#000038White text 19.87:1#00007EWhite text 16.14:1#0000CDWhite text 11.16:1#3C6EE3White text 4.63:1#8DAEF3Black text 9.48:1
With neutrals
#0000CDWhite text 11.16:1#B7CDF9Black text 13.11:1#000019White text 20.71:1#566D9CWhite text 5.17:1
Preview
Heading on Medium Blue
Body text on this color, 11.16:1.
ButtonHeading in Medium Blue
Text in this color on white, 11.16:1.
ButtonTints and shades
#B7CDF9#8DAEF3#648FEB#3C6EE3#1448D8#0000CD#0000A5#00007E#00005A#000038#000019
WhiteMedium BlueBlack
Similar named colors
Where the name comes from
- Source: Wikipedia, “X11 color names” (checked 1 Nov 2026)
- Listed in CSS Color 4, xkcd color survey, meodai color-name-list. About these lists.
Try it: