#0000FF color (blue)

#0000FF is rgb(0, 0, 255) in RGB and hsl(240, 100%, 50%) in HSL. It is exactly the CSS color blue. Use white text on it (contrast 8.59:1).

#0000FFblue
HEX#0000FF
Short HEX#00F
RGBrgb(0, 0, 255)
RGB percentrgb(0%, 0%, 100%)
HSLhsl(240, 100%, 50%)
HSV / HSBhsv(240, 100%, 100%)
CMYKcmyk(100%, 100%, 0%, 0%)

Edit in the color converter → · Check contrast → · Shades →

About #0000FF

#0000FF is a medium, vivid indigo with a hue angle of 240°. It belongs to the blue family and reads as a cool color. In the RGB model blue is the strongest channel at 255 (100%) and red the weakest at 0 (0%). Colors like this are typically used for buttons, links, badges and other accents that need to stand out.

Color conversions

HEX#0000FF
Short HEX#00F
RGBrgb(0, 0, 255)
RGB percentrgb(0%, 0%, 100%)
HSLhsl(240, 100%, 50%)
HSV / HSBhsv(240, 100%, 100%)
CMYKcmyk(100%, 100%, 0%, 0%)
CIELAB (D65)lab(32.3 79.2 -107.9)
Decimal255
Binary00000000 00000000 11111111

HEX 00 00 FF → 0, 0, 255 (each pair is a base-16 number: 0×16 + 0 = 0)

Color harmonies

Harmonies rotate the HSL hue (complementary +180°, triadic ±120°, split-complementary ±150°, analogous ±30°, tetradic 90° steps) and keep saturation and lightness. Swatches link to the nearest color page.

Tints and shades of #0000FF

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #0000FFRatioAA normalAA largeAAA normalAAA large
White text8.59:1PassPassPassPass
Black text2.44:1FailFailFailFail
White text on #0000FF
Black text on #0000FF
#0000FF text on white
#0000FF text on black

Relative luminance is 0.0722 (0 = black, 1 = white). WCAG 2 requires 4.5:1 for body text and 3:1 for large text and UI components.

Color blindness simulation

Protanopia
#0059ff

Deuteranopia
#003dfb

Tritanopia
#006b96

Achromatopsia
#4c4c4c

With deuteranopia, the most common form of color blindness, this color shifts noticeably (ΔE 7.4). Do not rely on it alone to signal status; add an icon or text label. Simulation uses the Machado (2009) matrices for full dichromacy; achromatopsia shows luminance only.

Similar named colors

NameHEXΔE 2000
blue#0000ff0
mediumblue#0000cd6.4
blueviolet#8a2be212
darkviolet#9400d312.8

Nearby colors

CSS

.element {
  color: #0000ff;
  background-color: rgb(0, 0, 255);
  border: 1px solid hsl(240, 100%, 50%);
  box-shadow: 0 2px 8px rgb(0 0 255 / 50%);
}
:root { --brand: #0000ff; }

Frequently asked questions

What color is #0000FF?
A medium vivid indigo in the blue family. Closest CSS name: blue.
What is #0000FF in RGB?
rgb(0, 0, 255): red 0, green 0, blue 255.
What is the complementary color of #0000FF?
#FFFF00, found by rotating the hue 180°.