#00008B
darkblue
#00008B is a blue colour. In RGB it is 0 red, 0 green and 139 blue, which converts to a hue of 240 degrees, 100% saturation and 27% lightness. It is one of the named CSS colours, written as darkblue in stylesheets.
Color values
| HEX | #00008B |
|---|---|
| RGB | rgb(0, 0, 139) |
| HSL | hsl(240, 100%, 27%) |
| HSV | hsv(240, 100%, 55%) |
| CMYK | cmyk(100%, 100%, 0%, 45%) |
Contrast and accessibility
Against white the contrast ratio is 15.3:1, and against black it is 1.37: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 | 15.3:1 | AAA | AAA |
| Black | 1.37:1 | Fail | Fail |
Tints and shades
Lighter tints move #00008B toward white, and darker shades move it toward black.
Tints
Shades
Color harmonies
Complementary
Analogous
Triadic
Split complementary
Code
| CSS | color: #00008B; |
|---|---|
| CSS rgb() | color: rgb(0 0 139); |
| Tailwind | bg-[#00008b] |
| SwiftUI | Color(red: 0.000, green: 0.000, blue: 0.545) |
| Android | Color.parseColor("#00008B") |