Color codes

Blue hex code #0000FF

#0000FF is pure blue: the blue light of a screen at full strength and red and green off. CSS calls it blue.

Blue #0000FF CSS named color: blue

Blue color codes

HEX#0000FF
RGBrgb(0, 0, 255)
HSLhsl(240, 100%, 50%)
CMYKcmyk(100%, 100%, 0%, 0%)
More formats and code
HSV / HSBhsv(240, 100%, 100%)
OKLCHoklch(0.452 0.313 264.1)
RGB numbers0, 0, 255
CSScolor: #0000ff;
Tailwindbg-[#0000ff]
SwiftUIColor(red: 0.000, green: 0.000, blue: 1.000)
AndroidColor.parseColor("#0000FF")

CMYK here is a plain formula. Ask your print shop for the numbers their press uses.

Open in a tool: ConverterShade generatorContrast checkerColor wheelPalette generatorColor blindness simulator

Lighter and darker blue

Each step mixes in more white or black, in even steps for the eye. Tap a swatch to copy its code.

Lighter

Darker

Colors that go with blue

Complementary

Across the color wheel. Strong contrast, good for one button or one word.

Analogous

Its neighbors on the wheel. Calm, easy to use together.

Triadic

Three colors evenly spread. Lively, best with one in charge.

Pairs well in a brand

Blue and text

White text reads best on blue: 8.59:1. The same numbers hold for blue text on a white or a black page. Body text needs 4.5:1 for AA and 7:1 for AAA; large text needs 3:1.

TextContrastWCAG
AaWhite text on blue8.59:1AAA
AaBlack text on blue2.44:1Fails
Text in the sample post
How blue looks with color blindness

Other blue hex codes

Pure blue is harsh on screen, so brands nearly always use a softer one. Royal blue #4169E1 and dodger blue #1E90FF are the bright blues most people picture, steel blue #4682B4 is calmer, and medium blue #0000CD is a step darker than pure blue. For a dark blue, see navy.

  • BlueCSS named color: blue. The code on this page#0000FF
  • Royal blueCSS named color: royalblue#4169E1
  • Dodger blueCSS named color: dodgerblue#1E90FF
  • Medium blueCSS named color: mediumblue#0000CD
  • Steel blueCSS named color: steelblue#4682B4
  • NavyCSS named color: navy#000080

Blue in a small business brand

Blue reads as trust and calm: banks, clinics, cleaners, tech and many service businesses. It is a safe main color and carries white text well. Because so many brands are blue, pick a shade with a clear character and add a warm accent, like orange or coral, for buttons and sale badges.

FAQ

What is the hex code for blue?

Blue is #0000FF as the CSS named color blue. In RGB that is rgb(0, 0, 255), and in CMYK cmyk(100%, 100%, 0%, 0%).

What text color goes on blue?

White text, at a contrast of 8.59:1, which passes WCAG AAA. Black text reaches 2.44:1, too low for any text.

What is the hex code for royal blue?

CSS royal blue is #4169E1, which is rgb(65, 105, 225). It is lighter and friendlier than pure blue #0000FF.

Is white text on blue readable?

Yes on pure blue: white on #0000FF is 8.59:1, which passes AAA. On lighter blues, such as dodger blue, check the contrast first.

More color codes

All color codes

Keep your brand colors in one place

Add your brand colors once in Postfjord's design editor, under Settings, Brand, and every template can use them. Try it free.

Start free