blue (#0000FF)

blue is a CSS named color with the hex code #0000FF, rgb(0, 0, 255). It is a medium, vivid indigo.

blue#0000FF
Keywordblue
HEX#0000ff
RGBrgb(0, 0, 255)
HSLhsl(240, 100%, 50%)

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

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

ColorHEXRGBΔE 2000
mediumblue#0000cd0, 0, 2056.4
blueviolet#8a2be2138, 43, 22612
darkviolet#9400d3148, 0, 21112.8
rebeccapurple#663399102, 51, 15314.5
darkblue#00008b0, 0, 13915
indigo#4b008275, 0, 13015.8
darkorchid#9932cc153, 50, 20415.8
darkslateblue#483d8b72, 61, 13915.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.

Frequently asked questions

What is the hex code for blue?
#0000FF.
What colors are similar to blue?
mediumblue (#0000cd), blueviolet (#8a2be2), darkviolet (#9400d3).