#0000CD

#0000CD is the hex color MediumBlue. Here are its RGB, HSL, HSV, CMYK, and OKLCH values, ready-made shades and palettes, and the text colors that stay readable on it.

This is the nearest named color to #0000CD; the exact match is MediumBlue.

Open #0000CD in the picker

#0000CD color codes

HEX
#0000CD
HEX8
#0000CDFF
HEX8 (Android)
#FF0000CD
RGB
rgb(0, 0, 205)
RGB (%)
0%, 0%, 80%
HSL
hsl(240, 100%, 40%)
HSV / HSB
hsv(240, 100%, 80%)
CMYK
cmyk(100%, 100%, 0%, 20%)
OKLCH
oklch(0.3835 0.2657 264.05)
OKLCH (%)
oklch(38.35% 0.2657 264.05)
Decimal
205

What color is #0000CD?

#0000CD sits at 38% lightness and 0.2657 chroma in OKLCH, hue 264.05°. Its nearest named color is MediumBlue (an exact match).

Shades and tints of #0000CD

Tints

Shades

Tones

#0000CD color harmonies

Complementary

Analogous

Triadic

Split-complementary

Tetradic

Square

Monochromatic

Using #0000CD in CSS

.text       { color: #0000CD; }
.background { background-color: #0000CD; }
.border     { border: 2px solid #0000CD; }

/* Modern, perceptually uniform */
.text { color: oklch(0.3835 0.2657 264.05); }

/* #0000CD at 50% transparency */
.overlay { background-color: #0000CD80; }

Is #0000CD accessible?

#0000CD on white text scores 11.16:1; on black text it scores 1.88:1. White text passes WCAG AAA on #0000CD. Recommended text color on a #0000CD background: white.

A 1.88:1 vs black
A 11.16:1 vs white
  • AA normal ≥ 4.5 Pass
  • AA large ≥ 3 Pass
  • AAA normal ≥ 7 Pass
  • AAA large ≥ 4.5 Pass

Recommended text color: white

CSS contrast-color() contrast-color(#0000CD) → white
APCA Lc experimental 96.6 Lc · body text — preferred (white text)

WCAG 2.1 AA/AAA is the compliance floor; APCA is an optional readability metric.

Related colors

Nearest featured color: Blue #0000FF. See more in the blue family on the colors hub.

Frequently asked questions

What color is #0000CD?
#0000CD is MediumBlue. In RGB it is rgb(0, 0, 205), and in HSL hsl(240, 100%, 40%).
What is #0000CD in RGB?
#0000CD converts to rgb(0, 0, 205) — red 0, green 0, blue 205.
What text color is readable on #0000CD?
White text — it has the higher contrast ratio (11.16:1) against #0000CD. White text passes WCAG AAA on #0000CD.
Open #0000CD in the picker