mediumblue (#0000CD)

mediumblue is a CSS named color with the hex code #0000CD, rgb(0, 0, 205). It is a medium-dark, vivid indigo.

mediumblue#0000CD
Keywordmediumblue
HEX#0000cd
RGBrgb(0, 0, 205)
HSLhsl(240, 100%, 40%)

Full #0000CD details: palettes, shades, color-blind view →

Description

Mediumblue (read as "medium blue") has a hue of 240°, saturation 100% and lightness 40%, which places it in the blue family. The "medium" prefix is part of the CSS name, but CSS names are not systematic: for example darkgray (#A9A9A9) is lighter than gray (#808080).

Using mediumblue in CSS

.title { color: mediumblue; }
.box   { background: mediumblue; border-color: #0000cd; }
.soft  { background: rgb(0 0 205 / 20%); }   /* mediumblue at 20% opacity */

Named colors are case-insensitive and supported by every browser. Most of the 148 names come from the X11 color list adopted by early browsers.

Similar named colors

ColorHEXRGBΔE 2000
blue#0000ff0, 0, 2556.4
darkblue#00008b0, 0, 1398.8
navy#0000800, 0, 12810.3
indigo#4b008275, 0, 13011
midnightblue#19197025, 25, 11212.5
rebeccapurple#663399102, 51, 15313.2
darkslateblue#483d8b72, 61, 13913.9
darkviolet#9400d3148, 0, 21115.2

ΔE 2000 measures perceived difference: under 2 is hard to tell apart, over 10 is clearly different.

Pairs well with

Readability

Contrast with white text: 11.16:1; with black text: 1.88:1. White body text on mediumblue meets WCAG AA.

Frequently asked questions

What is the hex code for mediumblue?
#0000CD.
What colors are similar to mediumblue?
blue (#0000ff), darkblue (#00008b), navy (#000080).