#0000CD
mediumblue
#0000CD is the CSS named color "mediumblue", an exact match. In RGB it breaks down to red 0, green 0, and blue 205 out of 255 each. In HSL terms that's a hue of 240°, 100% saturation, and 40% lightness: a mid-tone — usable as an accent for buttons, links, and icons against either a light or dark background.
Every format
| HEX | #0000cd |
| RGB | rgb(0, 0, 205) |
| HSL | hsl(240° 100% 40%) |
| HSB | hsb(240° 100% 80%) |
| OKLCH | oklch(38% 0.266 264°) |
| OKLAB | oklab(38% -0.028 -0.264) |
| LCH | lch(23% 111.3 301°) |
| CMYK | cmyk(100% 100% 0% 20%) |
Shades (darker)
#0000cd · #0400c2 · #0a00b7 · #1000ad · #1400a2
Tints (lighter)
#0000cd · #002de3 · #0c47f9 · #1e5eff · #3074ff
Shades mix #0000CD toward black in even steps, useful for hover and pressed states in a UI; tints mix it toward white, useful for subtle backgrounds and disabled states that still read as the same color family.
On white: 11.16:1 — AAA
On black: 1.88:1 — fails
Frequently asked
- What is #0000CD in RGB?
- #0000CD is rgb(0, 0, 205) — red 0, green 0, blue 205 out of 255 each.
- Does #0000CD pass WCAG contrast on a white background?
- It has a contrast ratio of 11.16:1 against white, which passes WCAG AAA for normal text.
- What's a good background color to pair with #0000CD?
- White text or a white background gives better contrast (11.16:1) than black (1.88:1).