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
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.
The color directly opposite on the color wheel — creates maximum contrast and vibrance.
#0000FF
Base
#FFFF00
Colors adjacent on the wheel — naturally harmonious and pleasing to the eye.
#0000FF
Base
#0080FF
#8000FF
Two colors flanking the complement — high contrast with less tension than full complementary.
#0000FF
Base
#FF8000
#80FF00
Four colors at 90° intervals — rich variety, best when one color dominates.
Shades and tints of the same hue — cohesive, elegant, and easy to work with.
#0000FF
Base
#000066
#0000B3
#0000D6
#2929FF
#4D4DFF
#9999FF
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
#0000FF
Base
#2E2EFF
#5C5CFF
#8A8AFF
#B8B8FF
#E6E6FF
Ready-to-use code snippets for #0000FF. Click the copy button to copy any snippet to your clipboard.
/* Background */
.element {
background-color: #0000FF;
}
/* Text */
.element {
color: #0000FF;
}
/* Border */
.element {
border: 1px solid #0000FF;
}
/* Linear gradient to complementary */
.element {
background: linear-gradient(
to right,
#0000FF,
#FFFF00
);
}
/* Radial gradient */
.element {
background: radial-gradient(
circle,
#0000FF,
#FFFF00
);
}
// 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);
}
How Blue appears to people with different types of color vision deficiency.
#0000FF
How the color appears with full color vision.
#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.
#0000FF
Protanopia affects ~1% of males. Red cones are absent, causing reds to appear dark and indistinguishable from greens and browns.
#006464
Tritanopia is rare (~0.003%). Blue cones are absent, making blue and yellow difficult to distinguish. Blues may appear green, yellows appear pink.
#4C4C4C
Achromatopsia is complete color blindness. The world is seen entirely in shades of grey. Affects ~1 in 30,000 people.
How to use this color
- Copy HEX for CSS and design tools, or RGB/HSL for UI adjustments.
- Use CMYK when preparing print assets (posters, packaging, brochures).
- Check contrast before using it for text or important UI elements.