Blue — #0000FF
One of the 148 named colours defined by CSS — this page is its complete working profile: every format, WCAG contrast, a 50–950 shade scale and computed harmonies, all copy-ready.
Blue values in every format
| CSS name | blue |
|---|---|
| HEX | #0000FF |
| RGB | rgb(0, 0, 255) |
| RGB % | 0%, 0%, 100% |
| HSL | hsl(240, 100%, 50%) |
| HSV / HSB | 240°, 100%, 100% |
| CMYK (print) | 100%, 100%, 0%, 0% |
| Relative luminance | 0.072 |
| Contrast on black | 2.44 : 1 |
| Contrast on white | 8.59 : 1 |
| Best text colour on it | White (8.59 : 1 — passes WCAG AA for normal text) |
Named colours are defined in the CSS Color Module (W3C). Values on this page were computed with the same colour maths as Loona's Colour Converter and checked 9 November 2026.
Shades of Blue (50–950)
50 #F0F0FF100 #DBDBFF200 #ADADFF300 #7070FF400 #2929FF500 #0000EB600 #0000BD700 #000094800 #000070900 #00004C950 #00002E
The scale keeps Blue's hue (240°) and saturation (100%) and steps lightness — the same method as the Colour Shades Generator, so these steps drop straight into a design system.
Colour harmonies with Blue
Complementary: #0000FF#FFFF00
Analogous: #007FFF#0000FF#7F00FF
Triadic: #0000FF#FF0000#00FF00
Split-complementary: #0000FF#FF8000#80FF00
Square: #0000FF#FF0080#FFFF00#00FF80
Computed by rotating the hue wheel from 240°. Try them live in the Colour Harmony Generator.
Closest named colours
mediumblue (#0000CD) · darkblue (#00008B) · navy (#000080)
Using Blue well
Blue sits in the blue family at 50% lightness — a mid-tone, vivid, cool colour. As a background it pairs best with white text (8.59:1 contrast). Its complement (#FFFF00) is the high-energy partner for calls-to-action and highlights; the analogous neighbours (#007FFF, #7F00FF) give calm, same-family gradients. For print, start from the CMYK values above and proof — screen Blue is an sRGB colour and rich screens shades can shift on press.
Popular Design Tools
Frequently Asked Questions
What is the hex code for Blue?
#0000FF — the CSS named colour “blue”. Its RGB is (0, 0, 255).
Is Blue good for text or backgrounds?
As a background, white text reads best on it (8.59:1). As text itself on white it reaches 8.59:1 — enough for WCAG AA normal text.
What colours go with Blue?
Its complement #FFFF00 for contrast, analogous #007FFF and #7F00FF for calm combinations, and the 50–950 shade scale above for monochrome designs.
What is Blue in CMYK for printing?
C100 M100 Y0 K0. CMYK conversions of screen colours are a starting point — always proof before a print run.