TintShelf
Interface

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.

CSS Color 4, meodai color-name-list#0000FFTop: the code browsers use
xkcd color survey#0343DFBelow: compare edge to edge

Blue color codes: each Blue hex code in every format

HEX#0000FF
RGBrgb(0, 0, 255)
HSLhsl(240, 100%, 50%)
OKLCHoklch(45.2% 0.313 264.1)
LABlab(29.6 68.3 -112.0)
CMYKcmyk(100%, 100%, 0%, 0%)

Sources

CSS Color 4web standard keyword
xkcd color survey2010 naming survey
meodai color-name-listopen community list

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

Open in generator

  • #0000FFWhite text 8.59:1
  • #6E5000White text 7.47:1
  • #6699FFBlack text 7.57:1
  • #412E00White text 13.00:1

Analogous

Open in generator

  • #005D82White text 7.27:1
  • #0000FFWhite text 8.59:1
  • #6600CEWhite text 8.55:1
  • #8FB6FFBlack text 10.30:1

Triadic

Open in generator

  • #0000FFWhite text 8.59:1
  • #A3001BWhite text 8.16:1
  • #006912White text 6.93:1
  • #B8D2FFBlack text 13.70:1

Monochrome

Open in generator

  • #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

Open in generator

  • #0000FFWhite text 8.59:1
  • #B8D2FFBlack text 13.70:1
  • #000022White text 20.53:1
  • #5772AAWhite text 4.78:1

How tints, shades and harmonies are calculated

Preview

Heading on Blue

Body text on this color, 8.59:1.

Button

Heading in Blue

Text in this color on white, 8.59:1.

Button

Tints and shades

  1. #B8D2FF
  2. #8FB6FF
  3. #6699FF
  4. #3E78FF
  5. #1452FF
  6. #0000FF
  7. #0000CE
  8. #00009E
  9. #000071
  10. #000048
  11. #000022

WhiteBlueBlack

Similar named colors

Where the name comes from

Try it:

Screens show the same code differently, and print adds more variation. CMYK here is the plain formula without a printer profile, so use it as a starting point, not a press value. Contrast numbers follow WCAG 2.x.