AfoliOpen Afoli →

Medium Blue color #0000CD

Medium Blue is one of the CSS named colors (keyword mediumblue) with the hex code #0000CD — RGB 0, 0, 205, HSL 240°, 100%, 40%.

Open in Afoli Colour tools →

#0000CDMedium Blue

Color codes

HEX
#0000CD
RGB
rgb(0, 0, 205)
HSL
hsl(240, 100%, 40%)
CMYK
100%, 100%, 0%, 20%
OKLCH
oklch(38.3% 0.266 264.1)
CSS keyword
mediumblue

Tints and shades

#F0F5FF#C8DBFF#A0BFFF#77A3FF#4F84FF#2561FF#043CEF#0025C2#001690#000067#000037

Color harmonies

Complementary
#0000CD#573F00
Analogous
#004967#0000CD#5100A5
Triadic
#0000CD#830013#00530B
Split complementary
#0000CD#693200#434800
Tetradic
#0000CD#7C0049#573F00#005040

Contrast with text

PairWCAG 2.x ratioAPCA LcResult
Medium Blue text on white11.16 : 192AAA — any text
Medium Blue text on black1.88 : 1-10Fails for text
White text on Medium Blue11.16 : 1-97AAA — any text
Black text on Medium Blue1.88 : 112Fails for text

WCAG 2.x needs 4.5 : 1 for body text and 3 : 1 for large text; APCA asks for |Lc| 75 for body text and 60 for large text.

Frequently asked questions

What is the hex code of Medium Blue?

Medium Blue has the hex code #0000CD, which is RGB 0, 0, 205 and HSL 240°, 100%, 40%.

Which text color reads best on Medium Blue?

White text: contrast 11.16 : 1 (black text: 1.88 : 1).

Which colors go well with Medium Blue?

Its complementary color is #573F00; analogous colors are #004967 and #5100A5; a triadic set adds #830013 and #00530B.

Similar colors

Sources and licences

Updated November 21, 2026