#004080 color
The hex color #004080 is a dark, vivid azure.
In the RGB color model it is made of 0% red, 25.1% green and 50.2% blue (0, 64, 128).
Its hue angle is 210°, with 100% saturation and 25% lightness. For print, the CMYK equivalent is 100% cyan, 50% magenta, 0% yellow and 50% black.
The closest named color is Pacific Depths (#004488), a difference of 1.5 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 10.27:1).
#004080 color codes
| HEX | #004080 | |
|---|---|---|
| RGB | rgb(0, 64, 128) | |
| RGB percent | rgb(0%, 25.1%, 50.2%) | |
| HSL | hsl(210, 100%, 25%) | |
| HSV / HSB | hsv(210, 100%, 50%) | |
| CMYK | cmyk(100%, 50%, 0%, 50%) | |
| CIE LAB | lab(27.37, 9.11, -41.01) | |
| CIE LCH | lch(27.37, 42.01, 282.53) | |
| CIE XYZ | xyz(5.728, 5.225, 21.124) | |
| Decimal | 16512 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #004080, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #004080 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.05:1 | Fail | Fail | Fail |
| Sample text | 10.27:1 | Pass | Pass | Pass |
| #004080 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.27:1 | Pass | Pass | Pass |
| Sample text | 2.05:1 | Fail | Fail | Fail |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #004080 looks to people with the most common types of color vision deficiency.
#194682Protanopia
no red cones#003c7fDeuteranopia
no green cones#005059Tritanopia
no blue cones#414141Achromatopsia
no color vision
CSS examples
.background { background-color: #004080; }
.text { color: #004080; }
.border { border: 2px solid #004080; }
.transparent { background-color: rgb(0 64 128 / 50%); }
.gradient { background: linear-gradient(to right, #004080, #000080); }
Similar colors
#004488Pacific Depths#1e4581Maritime Outpost#003b6fTardis Blue#1b416fAegean Blue#004477Mermaid Blues#03386aLost in Space#1e488fNuit Blanche#25488aPacific Navy
Closest common color name: Cobalt Blue.
Questions
- What color is #004080?
- #004080 is a dark, vivid azure, closest to the named color Pacific Depths. It belongs to the blue family of colors.
- What is the RGB value of #004080?
- The RGB value is 0, 64, 128: 0 red, 64 green and 128 blue on a 0 to 255 scale.
- What is the complementary color of #004080?
- The complementary color is #804000, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #004080?
- White text. Black text has a contrast ratio of 2.05:1 and white text 10.27:1. WCAG asks for at least 4.5:1 for normal text.