#0000FF
blue
#0000FF is a blue colour. In RGB it is 0 red, 0 green and 255 blue, which converts to a hue of 240 degrees, 100% saturation and 50% lightness. It is one of the named CSS colours, written as blue in stylesheets.
Color values
| HEX | #0000FF |
|---|---|
| RGB | rgb(0, 0, 255) |
| HSL | hsl(240, 100%, 50%) |
| HSV | hsv(240, 100%, 100%) |
| CMYK | cmyk(100%, 100%, 0%, 0%) |
Contrast and accessibility
Against white the contrast ratio is 8.59:1, and against black it is 2.44:1. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text.
| Background | Ratio | Normal text | Large text |
|---|---|---|---|
| White | 8.59:1 | AAA | AAA |
| Black | 2.44:1 | Fail | Fail |
Tints and shades
Lighter tints move #0000FF toward white, and darker shades move it toward black.
Tints
Shades
Color harmonies
Complementary
Analogous
Triadic
Split complementary
Code
| CSS | color: #0000FF; |
|---|---|
| CSS rgb() | color: rgb(0 0 255); |
| Tailwind | bg-[#0000ff] |
| SwiftUI | Color(red: 0.000, green: 0.000, blue: 1.000) |
| Android | Color.parseColor("#0000FF") |