Blue Color

Blue is a vivid, dark blue with hex code #0000FF. Here are its RGB, HSL, CMYK and OKLCH values, tints and shades, matching colours and CSS.

#0000FFRGB 0 0 255
Blue#0000FF

Blue color codes

HEX#0000FF
RGBrgb(0, 0, 255)
HSLhsl(240, 100%, 50%)
HSV240°, 100%, 100%
CMYK100%, 100%, 0%, 0%
OKLCHoklch(45.2% 0.313 264.1)
Tailwindbg-[#0000ff]

Closest Tailwind colour: blue-700 (#1D4ED8). Convert any colour in the Color Converter.

About Blue

Blue (#0000FF) is a vivid, dark blue. In the RGB model it is 0% red, 0% green and 100% blue; its hue angle is 240°, with 100% saturation and 50% lightness. For print, the CMYK equivalent is 100% cyan, 100% magenta, 0% yellow and 0% black.

It is a cool colour and appears in our shades of blue. Text on it reads best in white (8.6:1 contrast).

Blue tints and shades

Tints mix blue with white; shades mix it with black. Click to copy.

10%
20%
30%
40%
50%
60%
70%
80%
90%
Base
-10%
-20%
-30%
-40%
-50%
-60%
-70%
-80%
-90%

Colors that go with Blue

Complementary

Blue

Analogous

Blue
near Azure

Triadic

Blue
near Red
near Lime

Split complementary

Blue

Blue contrast

White text8.59:1
  • AA text pass
  • AAA text pass
  • AA large pass
Black text2.44:1
  • AA text fail
  • AAA text fail
  • AA large fail

Using Blue in CSS

.brand {
  color: #0000ff;
}
.button {
  background: #0000ff;
  color: #fff;
}
.hero {
  background: linear-gradient(135deg, #5959ff, #0000ff, #0000a6);
}

Similar colors

Gradients with Blue

Very closeCurated

Laser Blue

More gradients near #0000FF →

Blue FAQ

What color is Blue?

Blue is a vivid, dark blue. Its hex code is #0000FF and it is a cool colour.

What is the hex code for Blue?

The hex code for Blue is #0000FF. In RGB that is rgb(0, 0, 255), and in HSL hsl(240, 100%, 50%).

What is Blue in CMYK?

Blue is roughly C 100%, M 100%, Y 0%, K 0% in CMYK. Screen-to-print conversion depends on the printer profile, so check a proof for brand colours.

What colors go well with Blue?

Its complementary colour is #FFFF00. For a calmer palette use its analogous colours #0080FF and #8000FF, or tints and shades of Blue itself.

Is white or black text better on Blue?

White text reads better on Blue: 8.6:1 contrast, against 2.4:1 for black. WCAG asks for 4.5:1 for body text.

Browse colors