#002A7E color

#002A7E rgb(0, 42, 126)
Shades of blue

The hex color #002A7E is a dark, vivid blue.

In the RGB color model it is made of 0% red, 16.5% green and 49.4% blue (0, 42, 126).

Its hue angle is 220°, with 100% saturation and 25% lightness. For print, the CMYK equivalent is 100% cyan, 67% magenta, 0% yellow and 51% black.

The closest named color is Below the Surface (#0A2F7C), a difference of 1.7 ΔE, which is barely visible.

White text is the more readable choice on this background (contrast 12.86:1).

#002A7E color codes

HEX#002A7E
RGBrgb(0, 42, 126)
RGB percentrgb(0%, 16.5%, 49.4%)
HSLhsl(220, 100%, 25%)
HSV / HSBhsv(220, 100%, 49%)
CMYKcmyk(100%, 67%, 0%, 51%)
CIE LABlab(20.68, 24.01, -50.64)
CIE LCHlch(20.68, 56.05, 295.37)
CIE XYZxyz(4.593, 3.162, 20.103)
Decimal10878
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #002A7E, 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 #002A7ERatioAAAAAAA large
Sample text1.63:1FailFailFail
Sample text12.86:1PassPassPass
#002A7E as text onRatioAAAAAAA large
Sample text12.86:1PassPassPass
Sample text1.63: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 #002A7E looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #002a7e; }
.text { color: #002a7e; }
.border { border: 2px solid #002a7e; }
.transparent { background-color: rgb(0 42 126 / 50%); }
.gradient { background: linear-gradient(to right, #002a7e, #15007e); }
Background
Text color
Border

Similar colors

Closest common color name: Midnight Blue.

Questions

What color is #002A7E?
#002A7E is a dark, vivid blue, closest to the named color Below the Surface. It belongs to the blue family of colors.
What is the RGB value of #002A7E?
The RGB value is 0, 42, 126: 0 red, 42 green and 126 blue on a 0 to 255 scale.
What is the complementary color of #002A7E?
The complementary color is #7E5400, found by rotating the hue 180° on the color wheel.
Is black or white text better on #002A7E?
White text. Black text has a contrast ratio of 1.63:1 and white text 12.86:1. WCAG asks for at least 4.5:1 for normal text.