AfoliOpen Afoli →

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%.

Open in Afoli Colour tools →

#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

PairWCAG 2.x ratioAPCA LcResult
Blue text on white8.59 : 186AAA — any text
Blue text on black2.44 : 1-16Fails for text
White text on Blue8.59 : 1-91AAA — any text
Black text on Blue2.44 : 118Fails for text

WCAG 2.x needs 4.5 : 1 for body text and 3 : 1 for large text; APCA asks for |Lc| 75 for body text and 60 for large 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

Sources and licences

Updated November 21, 2026