#2A124A color
The hex color #2A124A is a very dark, moderate violet.
In the RGB color model it is made of 16.5% red, 7.1% green and 29% blue (42, 18, 74).
Its hue angle is 266°, with 61% saturation and 18% lightness. For print, the CMYK equivalent is 43% cyan, 76% magenta, 0% yellow and 71% black.
The closest named color is Fabric of Space (#341758), a difference of 2.9 ΔE, a small difference.
White text is the more readable choice on this background (contrast 16.36:1).
#2A124A color codes
| HEX | #2A124A | |
|---|---|---|
| RGB | rgb(42, 18, 74) | |
| RGB percent | rgb(16.5%, 7.1%, 29%) | |
| HSL | hsl(266, 61%, 18%) | |
| HSV / HSB | hsv(266, 76%, 29%) | |
| CMYK | cmyk(43%, 76%, 0%, 71%) | |
| CIE LAB | lab(12.09, 25.77, -30.24) | |
| CIE LCH | lch(12.09, 39.73, 310.44) | |
| CIE XYZ | xyz(2.407, 1.419, 6.624) | |
| Decimal | 2757194 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #2A124A, 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 #2A124A | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.28:1 | Fail | Fail | Fail |
| Sample text | 16.36:1 | Pass | Pass | Pass |
| #2A124A as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 16.36:1 | Pass | Pass | Pass |
| Sample text | 1.28: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 #2A124A looks to people with the most common types of color vision deficiency.
#00204cProtanopia
no red cones#001f49Deuteranopia
no green cones#221f2cTritanopia
no blue cones#202020Achromatopsia
no color vision
CSS examples
.background { background-color: #2a124a; }
.text { color: #2a124a; }
.border { border: 2px solid #2a124a; }
.transparent { background-color: rgb(42 18 74 / 50%); }
.gradient { background: linear-gradient(to right, #2a124a, #46124a); }
Similar colors
#341758Fabric of Space#37115cWicked Purple#231c4dSilent Orbit#220044Your Darkness#2d135fVoldemort#372354Stormy Night#160435Quiet Abyss#330055Hollow Knight
Closest common color name: Midnight Blue.
Questions
- What color is #2A124A?
- #2A124A is a very dark, moderate violet, closest to the named color Fabric of Space. It belongs to the purple family of colors.
- What is the RGB value of #2A124A?
- The RGB value is 42, 18, 74: 42 red, 18 green and 74 blue on a 0 to 255 scale.
- What is the complementary color of #2A124A?
- The complementary color is #324A12, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #2A124A?
- White text. Black text has a contrast ratio of 1.28:1 and white text 16.36:1. WCAG asks for at least 4.5:1 for normal text.