Medium Blue color: hex code #0000CD

#0000CD rgb(0, 0, 205)
Shades of blue

Medium Blue has the hex code #0000CD. It is a vivid blue.

In the RGB color model it is made of 0% red, 0% green and 80.4% blue (0, 0, 205).

Its hue angle is 240°, with 100% saturation and 40% lightness. For print, the CMYK equivalent is 100% cyan, 100% magenta, 0% yellow and 20% black.

You can use it in CSS with the keyword mediumblue.

White text is the more readable choice on this background (contrast 11.16:1).

Medium Blue (#0000CD) color codes

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%)
CIE LABlab(24.97, 67.18, -91.5)
CIE LCHlch(24.97, 113.51, 306.28)
CIE XYZxyz(11.016, 4.406, 58.016)
Decimal205
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with Medium Blue, based on their position on the color wheel.

Complementary

The color opposite on the color wheel (180°). Strongest contrast.

Analogous

Neighbors 30° either side. Calm, natural combinations.

Split complementary

The two colors next to the complement (150° and 210°).

Triadic

Three colors evenly spaced, 120° apart.

Tetradic (square)

Four colors 90° apart.

Shades, tints and tones

Shades (darker, mixed with black)

Tints (lighter, mixed with white)

Tones (mixed with gray)

Contrast and accessibility

Text on #0000CDRatioAAAAAAA large
Sample text1.88:1FailFailFail
Sample text11.16:1PassPassPass
#0000CD as text onRatioAAAAAAA large
Sample text11.16:1PassPassPass
Sample text1.88:1FailFailFail

WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.

Color blindness simulation

How #0000CD looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #0000cd; }
.text { color: #0000cd; }
.border { border: 2px solid #0000cd; }
.transparent { background-color: rgb(0 0 205 / 50%); }
.gradient { background: linear-gradient(to right, #0000cd, #6700cd); }
Background
Text color
Border

Similar colors

See #0000CD on its hex code page

Questions

What color is #0000CD?
#0000CD is a vivid blue known as Medium Blue. It belongs to the blue family of colors.
What is the RGB value of Medium Blue?
The RGB value is 0, 0, 205: 0 red, 0 green and 205 blue on a 0 to 255 scale.
What is the complementary color of Medium Blue?
The complementary color is #CDCD00, found by rotating the hue 180° on the color wheel.
Is black or white text better on #0000CD?
White text. Black text has a contrast ratio of 1.88:1 and white text 11.16:1. WCAG asks for at least 4.5:1 for normal text.