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