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
| Color | HEX | RGB | ΔE 2000 |
|---|---|---|---|
| blue | #0000ff | 0, 0, 255 | 6.4 |
| darkblue | #00008b | 0, 0, 139 | 8.8 |
| navy | #000080 | 0, 0, 128 | 10.3 |
| indigo | #4b0082 | 75, 0, 130 | 11 |
| midnightblue | #191970 | 25, 25, 112 | 12.5 |
| rebeccapurple | #663399 | 102, 51, 153 | 13.2 |
| darkslateblue | #483d8b | 72, 61, 139 | 13.9 |
| darkviolet | #9400d3 | 148, 0, 211 | 15.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.