#0000CD

MediumBlue — Color Codes & Palette

#0000CD  ·  rgb(0, 0, 205)  ·  hsl(240, 100%, 40%)

Color Codes

Format Value
HEX #0000CD
RGB rgb(0, 0, 205)
HSL hsl(240, 100%, 40%)

Shades of MediumBlue

#0000B8#0000A3#00008F#00007A#000066#000052#00003D#000029

Tints of MediumBlue

#0000EB#0A0AFF#2929FF#4747FF#6666FF#8585FF#A3A3FF#C2C2FF

Color Pairings & Harmony

Complementary
#CCCC00
Analogous +30°
#6600CC
Analogous −30°
#0066CC
Triadic +120°
#CC0000
Triadic −120°
#00CC00

Contrast & Accessibility (WCAG 2.1)

vs. White (#FFFFFF)
11.16:1 — AAA pass for normal text
vs. Black (#000000)
1.88:1 — Fail

CSS Snippet

.element {
  color: #0000CD;
}

.element-bg {
  background-color: #0000CD;
  color: #ffffff;
}

.element-border {
  border: 2px solid #0000CD;
}

About MediumBlue

MediumBlue is a medium color with vivid, highly saturated, defined by the hex code #0000CD. Its exact color model values are rgb(0, 0, 205) in RGB and hsl(240, 100%, 40%) in HSL (hue 240°, saturation 100%, lightness 40%). On a white background the contrast ratio is 11.16:1 — AAA pass for normal text, and on black it is 1.88:1 — Fail. Use MediumBlue for UI elements, backgrounds, text, borders, or decorative accents. The shades section below shows progressively darker variations, while the tints strip shows progressively lighter versions — both useful for building a tonal palette. The harmony swatches provide complementary, analogous, and triadic pairings based on the HSL hue wheel.

Want to explore this color interactively, generate palettes, or convert between color formats? The DevArbor Color Picker has you covered.

Open the Color Picker →

Frequently Asked Questions

What is the RGB value of MediumBlue?
The RGB value of MediumBlue (#0000CD) is rgb(0, 0, 205). Red = rgb(0, 0, 205), representing the amounts of red, green, and blue light on a 0–255 scale.
Is MediumBlue accessible on a white background?
The contrast ratio of MediumBlue on white (#FFFFFF) is 11.16:1 — AAA pass for normal text. On black (#000000) the contrast ratio is 1.88:1 — Fail. WCAG 2.1 requires 4.5:1 for AA (normal text) and 7:1 for AAA.
What colors pair well with MediumBlue?
Based on color theory, MediumBlue (hsl(240, 100%, 40%)) pairs well with its complementary, analogous, and triadic hues. See the harmony swatches above for the exact hex values of each pairing type.