Blue color #0000FF
Blue is one of the CSS named colors (keyword blue) with the hex code #0000FF — RGB 0, 0, 255, HSL 240°, 100%, 50%.
#0000FFBlue
Color codes
- HEX
#0000FF- RGB
rgb(0, 0, 255)- HSL
hsl(240, 100%, 50%)- CMYK
100%, 100%, 0%, 0%- OKLCH
oklch(45.2% 0.313 264.1)- CSS keyword
blue
Tints and shades
#F0F5FF#C8DBFF#A0BFFF#77A3FF#4F84FF#2561FF#0034F8#0000D6#001690#000067#000037
Color harmonies
Complementary
#0000FF#6E5000
Analogous
#005D82#0000FF#6600CE
Triadic
#0000FF#A4001B#006911
Split complementary
#0000FF#844100#565B00
Tetradic
#0000FF#9C005D#6E5000#006552
Contrast with text
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Blue text on white | 8.59 : 1 | 86 | AAA — any text |
| Blue text on black | 2.44 : 1 | -16 | Fails for text |
| White text on Blue | 8.59 : 1 | -91 | AAA — any text |
| Black text on Blue | 2.44 : 1 | 18 | Fails for text |
Frequently asked questions
What is the hex code of Blue?
Blue has the hex code #0000FF, which is RGB 0, 0, 255 and HSL 240°, 100%, 50%.
Which text color reads best on Blue?
White text: contrast 8.59 : 1 (black text: 2.44 : 1).
Which colors go well with Blue?
Its complementary color is #6E5000; analogous colors are #005D82 and #6600CE; a triadic set adds #A4001B and #006911.
Similar colors
- Vivid Blue #152EFF
- Pure Blue #0203E2
- Light Royal Blue #3A2EFE
- Medium Blue #0000CD
- Electric Blue #0652FF
- Blue Blue #2242C7
- Blue/purple #5A06EF
- Purplish Blue #601EF9
- Azul #1D5DEC
- Violet Blue #510AC9
Sources and licences
- CSS Color Module Level 4 — named colors (W3C Software and Document License)
- Afoli — conversions, shades, harmonies, WCAG 2.x / APCA contrast (tools/color/color-core.js)