Blue (#0000FF)

HEX, RGB, HSL, CMYK values + mood/style/use-case color tags. Use this page to keep your colors consistent across web and print.

Preview

Sample Text
This is how text may look on this color.
Best text color: #FFFFFF
Contrast vs white: 8.59:1 — vs black: 2.44:1

Color values

  • HEX #0000FF
  • RGB rgb(0, 0, 255)
  • HSL hsl(240, 100%, 50%)
  • CMYK cmyk( 100, 100, 0, 0 )
  • Websafe #0000FF

Tags

Tip: tags are heuristic suggestions (helpful for browsing and inspiration).

Color Harmonies

Colors that pair well with #0000FF based on color theory relationships.

Complementary

The color directly opposite on the color wheel — creates maximum contrast and vibrance.

Blue
#0000FF Base
Yellow
#FFFF00
Analogous

Colors adjacent on the wheel — naturally harmonious and pleasing to the eye.

Blue
#0000FF Base
#0080FF
#8000FF
Triadic

Three colors equally spaced 120° apart — bold, balanced, and visually rich.

Blue
#0000FF Base
Red
#FF0000
Green
#00FF00
Split-Complementary

Two colors flanking the complement — high contrast with less tension than full complementary.

Blue
#0000FF Base
#FF8000
#80FF00
Tetradic (Square)

Four colors at 90° intervals — rich variety, best when one color dominates.

Blue
#0000FF Base
#FF0080
Yellow
#FFFF00
#00FF80
Monochromatic

Shades and tints of the same hue — cohesive, elegant, and easy to work with.

Blue
#0000FF Base
#000066
#0000B3
#0000D6
#2929FF
#4D4DFF
#9999FF
Shades & Tints

Darker shades and lighter tints of Blue, generated by adjusting lightness while keeping the same hue and saturation.

Shades (darker)

#00001A
#000047
#000075
#0000A3
#0000D1
Blue #0000FF Base
#2E2EFF
#5C5CFF
#8A8AFF
#B8B8FF
#E6E6FF
CSS & SCSS Snippets

Ready-to-use code snippets for #0000FF. Click the copy button to copy any snippet to your clipboard.

CSS Properties
/* Background */
.element {
    background-color: #0000FF;
}

/* Text */
.element {
    color: #0000FF;
}

/* Border */
.element {
    border: 1px solid #0000FF;
}
CSS Gradient
/* Linear gradient to complementary */
.element {
    background: linear-gradient(
        to right,
        #0000FF,
        #FFFF00
    );
}

/* Radial gradient */
.element {
    background: radial-gradient(
        circle,
        #0000FF,
        #FFFF00
    );
}
SCSS Variable
// SCSS variable
$blue: #0000FF;

// With RGB channels (useful for rgba() usage)
$blue-r: 0;
$blue-g: 0;
$blue-b: 255;

// Usage
.element {
    background-color: $blue;
    color: rgba($blue-r, $blue-g, $blue-b, 0.8);
}
Color Blindness Simulation

How Blue appears to people with different types of color vision deficiency.

Normal Vision #0000FF How the color appears with full color vision.
Deuteranopia #0000FF Deuteranopia affects ~8% of males. Green cones are absent, making it difficult to distinguish red from green. The most common form of color blindness.
Protanopia #0000FF Protanopia affects ~1% of males. Red cones are absent, causing reds to appear dark and indistinguishable from greens and browns.
Tritanopia #006464 Tritanopia is rare (~0.003%). Blue cones are absent, making blue and yellow difficult to distinguish. Blues may appear green, yellows appear pink.
Achromatopsia #4C4C4C Achromatopsia is complete color blindness. The world is seen entirely in shades of grey. Affects ~1 in 30,000 people.
Similar Named Colors

The closest named colors to Blue ranked by perceptual difference (Delta-E 2000 — lower = more similar).

Blue #0000FF Base
Bluebonnet #1C1CF0 ΔE 1.95
Electric Ultramarine #3F00FF ΔE 2.32
Han Purple #5218FA ΔE 4.25
Medium Blue #0000CD ΔE 6.38

How to use this color

  1. Copy HEX for CSS and design tools, or RGB/HSL for UI adjustments.
  2. Use CMYK when preparing print assets (posters, packaging, brochures).
  3. Check contrast before using it for text or important UI elements.