Blue
Blue is a dark, saturated blue-violet color with the hex code #0000FF (hue 240°, saturation 100%, lightness 50%). It is also the CSS named color blue.
- HEX
#0000FF - RGB
rgb(0 0 255) - HSL
hsl(240 100% 50%) - OKLCH
oklch(45.2% 0.313 264)
| Name | HEX | RGB | HSL | CMYK | OKLCH | |
|---|---|---|---|---|---|---|
| Blue | #0000FF | 0, 0, 255 | 240°, 100%, 50% | 100, 100, 0, 0 | 45.2% 0.313 264 |
Contrast with white text 8.59:1, with black text 2.44:1 — use white text on Blue.
blue is one of the 148 named colors in CSS, with exactly this value, so color: blue works in any browser without a hex code.
Huebook · Maintained by Iris Marlow (pen name) · automated checks · Data: color-name-list (MIT) for names; CSS Color Module Level 4 (W3C) for CSS named colors · Updated · How the checks work
Adjust Blue
Move the sliders to make Blue lighter, darker, more or less vivid, or shift its hue. The nearest named colors update as you go.
- HEX
#0000FF - RGB
rgb(0 0 255) - HSL
hsl(240 100% 50%)
Variations of Blue
Text on Blue
WCAG 2 asks for 4.5:1 for body text and 3:1 for large text (AA), and 7:1 and 4.5:1 for the stricter AAA level.
Blue with color blindness
How Blue appears with a complete loss of red (protanopia), green (deuteranopia) or blue (tritanopia) cones, simulated with the Machado, Oliveira and Fernandes (2009) model. Red-green color blindness affects about 1 in 12 men and 1 in 200 women, so do not rely on color alone to carry meaning.
Tints and shades
Colors that go with Blue
Six color schemes built on Blue with classic harmony rules. The complementary scheme pairs it with Yellow (#FFFF00), the color opposite it on the color wheel.
- Blue Complementary Color Scheme#0000FF#5555FF#FFFF00#A8B504#FFFF66
- Blue Analogous Color Scheme#00FFFF#007FFF#0000FF#7F00FF#FF00FF
- Blue Triadic Color Scheme#0000FF#FF0000#00FF00#6666FF#B30103
- Blue Split-complementary Color Scheme#0000FF#FF7F00#88FF00#0000BB#FFA64F
- Blue Tetradic Color Scheme#0000FF#FF0080#FFFF00#04F489#6666FF
- Blue Monochromatic Color Scheme#000066#0000BB#0000FF#4D4DFF#9999FF
Nearest CSS named colors
- Medium Blue (
mediumblue): Medium Blue (#0000CD) is darker than Blue (relative luminance 0.044 vs 0.072) and equally saturated, with the same hue. - Royal Blue (
royalblue): Royal Blue (#4169E1) is lighter than Blue (relative luminance 0.167 vs 0.072) and less saturated, with its hue 15° away. - Slate Blue (
slateblue): Slate Blue (#6A5ACD) is lighter than Blue (relative luminance 0.148 vs 0.072) and less saturated, with its hue 8° away. - Dark Blue (CSS) (
darkblue): Dark Blue (CSS) (#00008B) is darker than Blue (relative luminance 0.019 vs 0.072) and equally saturated, with the same hue.
Gradients with Blue
Similar medium blue colors
- Admiral Blue#50647F
- Aster#867BA9
- Azure#007FFF
- Bay View#6A819E
- Beach View#4F7694
- Bellflower#5D66AA
- Blasphemous Blue#3356AA
- Blue Burst#309CD0
- Blue Overdose#0020EF
- Blue Ribbon#0066FF
- Blue Triumph#4376AB
- Bluebell#333399
- Blueberry#464196
- Bluebonnet#1C1CF0
- Bluerocratic#1F66FF
- Bluetiful#3C69E7
- Blurple#5539CC
- Blustering Blue#4411FF
Questions
What is the hex code for Blue?
#0000FF — RGB 0, 0, 255, HSL 240°, 100%, 50%.
Is Blue a warm or cool color?
Cool — its hue sits at 240° on the color wheel.