#002871 color

#002871 rgb(0, 40, 113)
Shades of blue

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
RGBrgb(0, 40, 113)
RGB percentrgb(0%, 15.7%, 44.3%)
HSLhsl(219, 100%, 22%)
HSV / HSBhsv(219, 100%, 44%)
CMYKcmyk(100%, 65%, 0%, 56%)
CIE LABlab(18.84, 19.87, -45.35)
CIE LCHlch(18.84, 49.51, 293.66)
CIE XYZxyz(3.738, 2.709, 15.945)
Decimal10353
Short hexNone (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 #002871RatioAAAAAAA large
Sample text1.54:1FailFailFail
Sample text13.62:1PassPassPass
#002871 as text onRatioAAAAAAA large
Sample text13.62:1PassPassPass
Sample text1.54:1FailFailFail

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.

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); }
Background
Text color
Border

Similar colors

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.