#0000FF

Blue — Color Codes & Palette

#0000FF  ·  rgb(0, 0, 255)  ·  hsl(240, 100%, 50%)

Color Codes

Format Value
HEX #0000FF
RGB rgb(0, 0, 255)
HSL hsl(240, 100%, 50%)

Shades of Blue

#0000E6#0000CC#0000B3#000099#000080#000066#00004D#000033

Tints of Blue

#1A1AFF#3333FF#4D4DFF#6666FF#8080FF#9999FF#B3B3FF#CCCCFF

Color Pairings & Harmony

Complementary
#FFFF00
Analogous +30°
#8000FF
Analogous −30°
#0080FF
Triadic +120°
#FF0000
Triadic −120°
#00FF00

Contrast & Accessibility (WCAG 2.1)

vs. White (#FFFFFF)
8.59:1 — AAA pass for normal text
vs. Black (#000000)
2.44:1 — Fail

CSS Snippet

.element {
  color: #0000FF;
}

.element-bg {
  background-color: #0000FF;
  color: #ffffff;
}

.element-border {
  border: 2px solid #0000FF;
}

About Blue

Blue is a medium color with vivid, highly saturated, defined by the hex code #0000FF. Its exact color model values are rgb(0, 0, 255) in RGB and hsl(240, 100%, 50%) in HSL (hue 240°, saturation 100%, lightness 50%). On a white background the contrast ratio is 8.59:1 — AAA pass for normal text, and on black it is 2.44:1 — Fail. Use Blue for UI elements, backgrounds, text, borders, or decorative accents. The shades section below shows progressively darker variations, while the tints strip shows progressively lighter versions — both useful for building a tonal palette. The harmony swatches provide complementary, analogous, and triadic pairings based on the HSL hue wheel.

Want to explore this color interactively, generate palettes, or convert between color formats? The DevArbor Color Picker has you covered.

Open the Color Picker →

Frequently Asked Questions

What is the RGB value of Blue?
The RGB value of Blue (#0000FF) is rgb(0, 0, 255). Red = rgb(0, 0, 255), representing the amounts of red, green, and blue light on a 0–255 scale.
Is Blue accessible on a white background?
The contrast ratio of Blue on white (#FFFFFF) is 8.59:1 — AAA pass for normal text. On black (#000000) the contrast ratio is 2.44:1 — Fail. WCAG 2.1 requires 4.5:1 for AA (normal text) and 7:1 for AAA.
What colors pair well with Blue?
Based on color theory, Blue (hsl(240, 100%, 50%)) pairs well with its complementary, analogous, and triadic hues. See the harmony swatches above for the exact hex values of each pairing type.