Blue Color
Blue is a vivid, dark blue with hex code #0000FF. Here are its RGB, HSL, CMYK and OKLCH values, tints and shades, matching colours and CSS.
Blue color codes
| HEX | #0000FF | |
|---|---|---|
| RGB | rgb(0, 0, 255) | |
| HSL | hsl(240, 100%, 50%) | |
| HSV | 240°, 100%, 100% | |
| CMYK | 100%, 100%, 0%, 0% | |
| OKLCH | oklch(45.2% 0.313 264.1) | |
| Tailwind | bg-[#0000ff] |
Closest Tailwind colour: blue-700 (#1D4ED8). Convert any colour in the Color Converter.
About Blue
Blue (#0000FF) is a vivid, dark blue. In the RGB model it is 0% red, 0% green and 100% blue; its hue angle is 240°, with 100% saturation and 50% lightness. For print, the CMYK equivalent is 100% cyan, 100% magenta, 0% yellow and 0% black.
It is a cool colour and appears in our shades of blue. Text on it reads best in white (8.6:1 contrast).
Blue tints and shades
Tints mix blue with white; shades mix it with black. Click to copy.
Colors that go with Blue
Complementary
Analogous
Split complementary
Blue contrast
- AA text pass
- AAA text pass
- AA large pass
- AA text fail
- AAA text fail
- AA large fail
Using Blue in CSS
.brand {
color: #0000ff;
}
.button {
background: #0000ff;
color: #fff;
}
.hero {
background: linear-gradient(135deg, #5959ff, #0000ff, #0000a6);
}Similar colors
Gradients with Blue
Blue FAQ
What color is Blue?
Blue is a vivid, dark blue. Its hex code is #0000FF and it is a cool colour.
What is the hex code for Blue?
The hex code for Blue is #0000FF. In RGB that is rgb(0, 0, 255), and in HSL hsl(240, 100%, 50%).
What is Blue in CMYK?
Blue is roughly C 100%, M 100%, Y 0%, K 0% in CMYK. Screen-to-print conversion depends on the printer profile, so check a proof for brand colours.
What colors go well with Blue?
Its complementary colour is #FFFF00. For a calmer palette use its analogous colours #0080FF and #8000FF, or tints and shades of Blue itself.
Is white or black text better on Blue?
White text reads better on Blue: 8.6:1 contrast, against 2.4:1 for black. WCAG asks for 4.5:1 for body text.
