Blue — #0000ff

Blue (#0000ff) is a medium, vivid blue. It is a CSS named color, so you can use it in stylesheets as color: blue as well as by its hex code. In RGB it is rgb(0, 0, 255); in HSL, hsl(240, 100%, 50%).

#0000ff

Color conversions

Hex#0000ff
CSS nameblue
RGBrgb(0, 0, 255)
HSLhsl(240, 100%, 50%)
CMYK100%, 100%, 0%, 0%
CSS examplecolor: #0000ff; background-color: rgb(0, 0, 255);

Tints and shades of #0000ff

The hue is calculated at seven exact lightness levels for use in backgrounds, borders, text and hover states. These values are not substituted with nearby named colors.

#d6d6ff
#8f8fff
#4747ff
#0000ff
#0000b8
#00007a
#000047

Color schemes with #0000ff

Complementary — maximum contrast, from opposite sides of the color wheel:

Analogous — neighbours on the wheel, naturally harmonious:

Triadic — three colors evenly spaced for balanced variety:

Tetradic — four colors at 90° intervals:

Text contrast and accessibility

On a #0000ff background, white text gives the better contrast. WCAG requires 4.5:1 for normal text and 3:1 for large text (AA), or 7:1 and 4.5:1 for AAA.

Text colorContrast ratioNormal textLarge text
White text (#ffffff)8.59:1AAAAAA
Black text (#000000)2.44:1FailsFails

Similar named colors

The CSS named colors closest to #0000ff: