Description
Blue has a hue of 240°, saturation 100% and lightness 50%, which places it in the blue family. Its strongest channel is blue (255).
Using blue in CSS
.title { color: blue; }
.box { background: blue; border-color: #0000ff; }
.soft { background: rgb(0 0 255 / 20%); } /* blue 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 |
|---|---|---|---|
| mediumblue | #0000cd | 0, 0, 205 | 6.4 |
| blueviolet | #8a2be2 | 138, 43, 226 | 12 |
| darkviolet | #9400d3 | 148, 0, 211 | 12.8 |
| rebeccapurple | #663399 | 102, 51, 153 | 14.5 |
| darkblue | #00008b | 0, 0, 139 | 15 |
| indigo | #4b0082 | 75, 0, 130 | 15.8 |
| darkorchid | #9932cc | 153, 50, 204 | 15.8 |
| darkslateblue | #483d8b | 72, 61, 139 | 15.9 |
Δ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: 8.59:1; with black text: 2.44:1. White body text on blue meets WCAG AA.