#002871 color
The hex color #002871 is a dark, vivid azure.
In the RGB color model it is made of 0% red, 15.7% green and 44.3% blue (0, 40, 113).
Its hue angle is 219°, with 100% saturation and 22% lightness. For print, the CMYK equivalent is 100% cyan, 65% magenta, 0% yellow and 56% black.
The closest named color is Dark Sapphire (#082567), a difference of 1.8 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 13.62:1).
#002871 color codes
| HEX | #002871 | |
|---|---|---|
| RGB | rgb(0, 40, 113) | |
| RGB percent | rgb(0%, 15.7%, 44.3%) | |
| HSL | hsl(219, 100%, 22%) | |
| HSV / HSB | hsv(219, 100%, 44%) | |
| CMYK | cmyk(100%, 65%, 0%, 56%) | |
| CIE LAB | lab(18.84, 19.87, -45.35) | |
| CIE LCH | lch(18.84, 49.51, 293.66) | |
| CIE XYZ | xyz(3.738, 2.709, 15.945) | |
| Decimal | 10353 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #002871, 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 #002871 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.54:1 | Fail | Fail | Fail |
| Sample text | 13.62:1 | Pass | Pass | Pass |
| #002871 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.62:1 | Pass | Pass | Pass |
| Sample text | 1.54: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 #002871 looks to people with the most common types of color vision deficiency.
#003373Protanopia
no red cones#002970Deuteranopia
no green cones#003b48Tritanopia
no blue cones#2e2e2eAchromatopsia
no color vision
CSS examples
.background { background-color: #002871; }
.text { color: #002871; }
.border { border: 2px solid #002871; }
.transparent { background-color: rgb(0 40 113 / 50%); }
.gradient { background: linear-gradient(to right, #002871, #100071); }
Similar colors
#082567Dark Sapphire#002366Deep Sea Nightmare#002266Midnight Melancholia#0a2f7cBelow the Surface#112473Midnight Crest#052462Black Sea Night#002277Long-Haul Flight#1c3378Twilight Express
Closest common color name: Midnight Blue.
Questions
- What color is #002871?
- #002871 is a dark, vivid azure, closest to the named color Dark Sapphire. It belongs to the blue family of colors.
- What is the RGB value of #002871?
- The RGB value is 0, 40, 113: 0 red, 40 green and 113 blue on a 0 to 255 scale.
- What is the complementary color of #002871?
- The complementary color is #714900, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #002871?
- White text. Black text has a contrast ratio of 1.54:1 and white text 13.62:1. WCAG asks for at least 4.5:1 for normal text.