#0000CD color (mediumblue)

#0000CD is rgb(0, 0, 205) in RGB and hsl(240, 100%, 40%) in HSL. It is exactly the CSS color mediumblue. Use white text on it (contrast 11.16:1).

#0000CDmediumblue
HEX#0000CD
RGBrgb(0, 0, 205)
RGB percentrgb(0%, 0%, 80.4%)
HSLhsl(240, 100%, 40%)
HSV / HSBhsv(240, 100%, 80%)
CMYKcmyk(100%, 100%, 0%, 20%)
CIELAB (D65)lab(25 67.2 -91.5)

Edit in the color converter → · Check contrast → · Shades →

About #0000CD

#0000CD is a medium-dark, vivid indigo with a hue angle of 240°. It belongs to the blue family and reads as a cool color. In the RGB model blue is the strongest channel at 205 (80%) and red the weakest at 0 (0%). Colors like this are typically used for buttons, links, badges and other accents that need to stand out.

Color conversions

HEX#0000CD
RGBrgb(0, 0, 205)
RGB percentrgb(0%, 0%, 80.4%)
HSLhsl(240, 100%, 40%)
HSV / HSBhsv(240, 100%, 80%)
CMYKcmyk(100%, 100%, 0%, 20%)
CIELAB (D65)lab(25 67.2 -91.5)
Decimal205
Binary00000000 00000000 11001101

HEX 00 00 CD → 0, 0, 205 (each pair is a base-16 number: 0×16 + 0 = 0)

Color harmonies

Harmonies rotate the HSL hue (complementary +180°, triadic ±120°, split-complementary ±150°, analogous ±30°, tetradic 90° steps) and keep saturation and lightness. Swatches link to the nearest color page.

Tints and shades of #0000CD

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #0000CDRatioAA normalAA largeAAA normalAAA large
White text11.16:1PassPassPassPass
Black text1.88:1FailFailFailFail
White text on #0000CD
Black text on #0000CD
#0000CD text on white
#0000CD text on black

Relative luminance is 0.0441 (0 = black, 1 = white). WCAG 2 requires 4.5:1 for body text and 3:1 for large text and UI components.

Color blindness simulation

Protanopia
#0046d2

Deuteranopia
#002fca

Tritanopia
#005577

Achromatopsia
#3b3b3b

With deuteranopia, the most common form of color blindness, this color shifts noticeably (ΔE 6.3). Do not rely on it alone to signal status; add an icon or text label. Simulation uses the Machado (2009) matrices for full dichromacy; achromatopsia shows luminance only.

Similar named colors

NameHEXΔE 2000
mediumblue#0000cd0
blue#0000ff6.4
darkblue#00008b8.8
navy#00008010.3

CSS

.element {
  color: #0000cd;
  background-color: rgb(0, 0, 205);
  border: 1px solid hsl(240, 100%, 40%);
  box-shadow: 0 2px 8px rgb(0 0 205 / 50%);
}
:root { --brand: #0000cd; }

Frequently asked questions

What color is #0000CD?
A medium-dark vivid indigo in the blue family. Closest CSS name: mediumblue.
What is #0000CD in RGB?
rgb(0, 0, 205): red 0, green 0, blue 205.
What is the complementary color of #0000CD?
#CDCD00, found by rotating the hue 180°.