Blue Color Code: Hex #0000FF
The hex code for Blue is #0000FF (the CSS keyword blue). Blue RGB code: rgb(0, 0, 255). The xkcd color survey gives #0343DF instead, which looks clearly different; both codes are below with their source.
#0000FFTop: the code browsers use#0343DFBelow: compare edge to edgeBlue color codes: each Blue hex code in every format
Sources
Properties
- Hex codes
- 2 different ones in 3 color lists; they look clearly different
- Family
- blue
- Contrast
- 8.59:1 with white, 2.44:1 with black
- CSS keyword
- blue
- Character
- dark, vivid
- Readable text on it
- white (AA)
In the X11 set, blue shares its hue and full saturation with navy, dark blue, medium blue and ghost white; the five differ only in lightness, from 25% for navy to 99% for ghost white.
A dark, vivid blue with a cool cast. In code, blue gives exactly this web value. If you mean the color as people usually picture the name, the survey value #0343DF is closer: it is about as light and more muted.
White text reads best on it; black text does not pass WCAG AA. Its exact opposite on the color wheel cannot be shown on screens, so the complementary palette uses the closest displayable version. Even pale tints keep its hue, which makes it easy to use for soft backgrounds. Next to Medium Blue, its closest named neighbour, it looks lighter, more vivid and cooler; beside Dark Blue it looks lighter, more vivid and cooler. It is one of the 16 original HTML 4 color names. All three channels are multiples of 51, so it is in the old 216-color web-safe palette.
Colors that go with Blue
Complementary: the opposite of Blue
#0000FFWhite text 8.59:1#6E5000White text 7.47:1#6699FFBlack text 7.57:1#412E00White text 13.00:1
Analogous
#005D82White text 7.27:1#0000FFWhite text 8.59:1#6600CEWhite text 8.55:1#8FB6FFBlack text 10.30:1
Triadic
#0000FFWhite text 8.59:1#A3001BWhite text 8.16:1#006912White text 6.93:1#B8D2FFBlack text 13.70:1
Monochrome
#000048White text 19.20:1#00009EWhite text 14.06:1#0000FFWhite text 8.59:1#3E78FFBlack text 5.34:1#8FB6FFBlack text 10.30:1
With neutrals
#0000FFWhite text 8.59:1#B8D2FFBlack text 13.70:1#000022White text 20.53:1#5772AAWhite text 4.78:1
Preview
Heading on Blue
Body text on this color, 8.59:1.
ButtonHeading in Blue
Text in this color on white, 8.59:1.
ButtonTints and shades
#B8D2FF#8FB6FF#6699FF#3E78FF#1452FF#0000FF#0000CE#00009E#000071#000048#000022
WhiteBlueBlack
Similar named colors
Where the name comes from
- Source: Wikipedia, “X11 color names” (checked 1 Nov 2026)
- Listed in CSS Color 4, xkcd color survey, meodai color-name-list. About these lists.
Try it: