Blue #0000FF

#0000FFBlue
HEX#0000FF
RGBrgb(0, 0, 255)
HSLhsl(240, 100%, 50%)
HSVhsv(240, 100%, 100%)
OKLCHoklch(45.2% 0.313 264.1)
OKLABoklab(45.2% -0.032 -0.312)
CMYKcmyk(100%, 100%, 0%, 0%)

Blue (#0000FF) is a dark, highly saturated blue hue. Pure sRGB blue is very dark perceptually: white text passes contrast on it, black text does not.

In RGB it is made of 0 red, 0 green and 255 blue. Its HSL hue angle is 240° with 100% saturation and 50% lightness, while its perceptual OKLCH lightness is 45% with a chroma of 0.313. For print, a starting CMYK mix is 100% cyan, 100% magenta, 0% yellow and 0% black.

As a text color on white, Blue has a contrast ratio of 8.59:1, which passes WCAG AA for normal text. On black it reaches 2.44:1 and fails AA. If you use Blue as a background, put white text on it. The APCA lightness contrast is Lc 18 for black text and Lc -91 for white text.

Its perceptual complement is #6E5000, close to chocolate. Colors that look most similar are sapphire, cobalt blue, denim. It looks fairly similar to people with red-green color blindness (ΔE 5), so its meaning mostly survives.

Contrast

Text on white · 8.59:1 AA ✓
Text on black · 2.44:1 ✗
White on Blue · APCA Lc -91
Black on Blue · APCA Lc 18

Shades and tints of blue

Color harmonies

ComplementaryAnalogousSplit complementaryTriadicTetradicMonochromatic

How blue looks with color blindness

Protanopia: #0059FFDeuteranopia: #003DFBTritanopia: #006B96Achromatopsia: #4C4C4C

Similar colors

Sapphire#0F52BACobalt Blue#0047ABDenim#1560BDRoyal Blue#4169E1Ultramarine#120A8FAzure#007FFFViolet#8F00FFNavy Blue#000080

FAQ

What is the hex code for blue?

The hex code for blue is #0000FF, which is rgb(0, 0, 255) in RGB.

What text color goes on blue?

White text. Its contrast with blue is 8.59:1.

What color is the complement of blue?

The perceptual (OKLCH) complement of #0000FF is #6E5000.

← All named colors