#2A008B color
The hex color #2A008B is a dark, vivid violet.
In the RGB color model it is made of 16.5% red, 0% green and 54.5% blue (42, 0, 139).
Its hue angle is 258°, with 100% saturation and 27% lightness. For print, the CMYK equivalent is 70% cyan, 100% magenta, 0% yellow and 45% black.
The closest named color is Orbital Kingdom (#220088), a difference of 0.9 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 14.27:1).
#2A008B color codes
| HEX | #2A008B | |
|---|---|---|
| RGB | rgb(42, 0, 139) | |
| RGB percent | rgb(16.5%, 0%, 54.5%) | |
| HSL | hsl(258, 100%, 27%) | |
| HSV / HSB | hsv(258, 100%, 55%) | |
| CMYK | cmyk(70%, 100%, 0%, 45%) | |
| CIE LAB | lab(17.25, 51.38, -64.44) | |
| CIE LCH | lch(17.25, 82.42, 308.57) | |
| CIE XYZ | xyz(5.614, 2.356, 24.58) | |
| Decimal | 2752651 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #2A008B, 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 #2A008B | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.47:1 | Fail | Fail | Fail |
| Sample text | 14.27:1 | Pass | Pass | Pass |
| #2A008B as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.27:1 | Pass | Pass | Pass |
| Sample text | 1.47: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 #2A008B looks to people with the most common types of color vision deficiency.
#002f8eProtanopia
no red cones#002589Deuteranopia
no green cones#00364fTritanopia
no blue cones#2a2a2aAchromatopsia
no color vision
CSS examples
.background { background-color: #2a008b; }
.text { color: #2a008b; }
.border { border: 2px solid #2a008b; }
.transparent { background-color: rgb(42 0 139 / 50%); }
.gradient { background: linear-gradient(to right, #2a008b, #70008b); }
Similar colors
#220088Orbital Kingdom#240093Dramatic Blue#120a8fUltramarine#221188Nightly Expedition#00008bDark Blue#000088Midnight in Tokyo#000099Everlasting Night#220077Child of the Night
Questions
- What color is #2A008B?
- #2A008B is a dark, vivid violet, closest to the named color Orbital Kingdom. It belongs to the purple family of colors.
- What is the RGB value of #2A008B?
- The RGB value is 42, 0, 139: 42 red, 0 green and 139 blue on a 0 to 255 scale.
- What is the complementary color of #2A008B?
- The complementary color is #618B00, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #2A008B?
- White text. Black text has a contrast ratio of 1.47:1 and white text 14.27:1. WCAG asks for at least 4.5:1 for normal text.