#002A7E color
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 | |
|---|---|---|
| RGB | rgb(0, 42, 126) | |
| RGB percent | rgb(0%, 16.5%, 49.4%) | |
| HSL | hsl(220, 100%, 25%) | |
| HSV / HSB | hsv(220, 100%, 49%) | |
| CMYK | cmyk(100%, 67%, 0%, 51%) | |
| CIE LAB | lab(20.68, 24.01, -50.64) | |
| CIE LCH | lch(20.68, 56.05, 295.37) | |
| CIE XYZ | xyz(4.593, 3.162, 20.103) | |
| Decimal | 10878 | |
| Short hex | None (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 #002A7E | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.63:1 | Fail | Fail | Fail |
| Sample text | 12.86:1 | Pass | Pass | Pass |
| #002A7E as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.86:1 | Pass | Pass | Pass |
| Sample text | 1.63: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 #002A7E looks to people with the most common types of color vision deficiency.
#003881Protanopia
no red cones#002c7cDeuteranopia
no green cones#004150Tritanopia
no blue cones#323232Achromatopsia
no color vision
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); }
Similar colors
#0a2f7cBelow the Surface#002277Long-Haul Flight#072688Naval Adventures#112473Midnight Crest#003388One Minute to Midnight#002489Lost in Heaven#223382Deep Space Royal#1c3378Twilight Express
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.