Blue — #0000FF

The hex code for blue is #0000FF — rgb(0, 0, 255), hsl(240, 100%, 50%). Use it in CSS as color: #0000FF;.

Blue is the color of the sky and the sea. It is the most popular color in the world and the default choice for trust, calm, and professionalism.

Blue color codes — click to copy

HEX#0000FF
RGBrgb(0, 0, 255)
HSLhsl(240, 100%, 50%)
HSVhsv(240, 100%, 100%)
CMYKcmyk(100%, 100%, 0%, 0%)

Shades, tints & tones of blue

Click any swatch to copy it.

Shades — mix with black
Tints — mix with white
Tones — mix with gray

Blue harmonies

Click a swatch to copy it.

Complementary
Analogous
Triadic
Split Complementary
Tetradic
Square
Monochromatic

Colors that go with blue

ColorHex
White#FFFFFF
Orange#FFA500
Yellow#FFFF00
Gray#808080

Where blue is used

Use blue for technology, finance, healthcare, and corporate sites. Dark blues feel authoritative; light blues feel open and friendly. Blue is also the safest color for color-blind users.

What blue is often associated with: Trust, calm, stability, and professionalism.

Contrast — can you read text on blue?

White text on blue scores 8.59:1

Normal text: AA Pass   AAA Pass

Large text (18pt+, or 14pt bold+): AA Pass   AAA Pass

Black text scores 2.44:1

Normal text: AA Fail   AAA Fail

Large text (18pt+, or 14pt bold+): AA Fail   AAA Fail

Check any pair in the contrast checker →

How blue looks with color blindness

Simulated with the Machado matrices. Click a swatch to copy the simulated color.

Protanopia

#0000C1

Deuteranopia

#0000B2

Tritanopia

#009186

This is a simulation for design checks, not a vision test. See the color blind simulator for any palette.

Frequently asked questions

What is the hex code for blue?

The hex code for blue is #0000FF.

What is the RGB of blue?

The RGB of blue is rgb(0, 0, 255).

What colors go with blue?

Colors that go well with blue include white (#FFFFFF), orange (#FFA500), yellow (#FFFF00). See the pairings table on this page for the full list.

Is blue a good color for a website?

Blue works well as an accent or background — white text on it scores 8.59:1, which passes WCAG AA. Check any pair in the contrast checker before you ship it.

What does the color blue mean?

Trust, calm, stability, and professionalism.

Related tools

Color Picker · Color Names · Palette Generator · Complementary Colors · Contrast Checker