Medium Blue Color Code (#0000cd)

Medium Blue is #0000cd in hex and rgb(0, 0, 205) — a medium blue. Below: every color format, tints and shades, harmonies and how readable it is as text.

Updated

Medium Blue
#0000cd
CSS namemediumblue
Hex#0000cd
RGBrgb(0, 0, 205)
HSLhsl(240 100% 40%)
HWBhwb(240 0% 20%)
CMYK100%, 100%, 0%, 20%

Tints and shades

Color harmonies

About Medium Blue

Medium Blue (mediumblue) is a medium, vivid blue with the hex code #0000cd, or rgb(0, 0, 205). In HSL it sits at a hue of 240°, 100% saturation and 40% lightness. It is one of the 148 named colors every browser understands, so you can write color: mediumblue; instead of the hex value.

Using Medium Blue for text and backgrounds

PairingContrast ratioWCAG
Medium Blue text on white11.16 : 1AAA
Medium Blue text on black1.88 : 1fails

On a medium blue background, use white text (11.16 : 1). WCAG asks for at least 4.5 : 1 for body text and 3 : 1 for large text. Check other pairs with the Contrast Checker.

CSS

.element {
  color: mediumblue;               /* or #0000cd */
  background-color: #0000cd;
  border: 1px solid rgb(0 0 205 / 50%);
}

Similar named colors

Blue (#0000ff), Dark Blue (#00008b), Navy (#000080), Midnight Blue (#191970), Indigo (#4b0082), Dark Slate Blue (#483d8b).

Color Name FinderPaste a HEX code to get its closest human-readable name and clean token names for your CSS, SCSS, JavaScript or Tailwind config.
Open the tool

Frequently asked questions

What is the hex code for medium blue?
#0000cd — that is rgb(0, 0, 205) and hsl(240, 100%, 40%). In CSS you can also just write mediumblue.
Is medium blue text readable on white?
Its contrast ratio on white is 11.16 : 1, which passes WCAG AA for normal text.
What colors go well with medium blue?
Its complementary color is #cccc00; analogous colors #0066cc and #6600cc sit next to it on the color wheel.