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.
- It is the CSS named color mediumblue, so you can write
color: mediumblueinstead of the hex code.
Color conversions
| HEX | #0000CD |
|---|---|
| RGB | rgb(0, 0, 205) |
| RGB percent | rgb(0%, 0%, 80.4%) |
| HSL | hsl(240, 100%, 40%) |
| HSV / HSB | hsv(240, 100%, 80%) |
| CMYK | cmyk(100%, 100%, 0%, 20%) |
| CIELAB (D65) | lab(25 67.2 -91.5) |
| Decimal | 205 |
| Binary | 00000000 00000000 11001101 |
HEX 00 00 CD → 0, 0, 205 (each pair is a base-16 number: 0×16 + 0 = 0)
Color harmonies
Complementary
Analogous
Triadic
Split-complementary
Tetradic
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 #0000CD | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White text | 11.16:1 | Pass | Pass | Pass | Pass |
| Black text | 1.88:1 | Fail | Fail | Fail | Fail |
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
| Name | HEX | ΔE 2000 |
|---|---|---|
| mediumblue | #0000cd | 0 |
| blue | #0000ff | 6.4 |
| darkblue | #00008b | 8.8 |
| navy | #000080 | 10.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; }