#2A3042 color
The hex color #2A3042 is a dark, grayish blue.
In the RGB color model it is made of 16.5% red, 18.8% green and 25.9% blue (42, 48, 66).
Its hue angle is 225°, with 22% saturation and 21% lightness. For print, the CMYK equivalent is 36% cyan, 27% magenta, 0% yellow and 74% black.
The closest named color is Total Eclipse (#303543), a difference of 2.6 ΔE, a small difference.
White text is the more readable choice on this background (contrast 13.13:1).
#2A3042 color codes
| HEX | #2A3042 | |
|---|---|---|
| RGB | rgb(42, 48, 66) | |
| RGB percent | rgb(16.5%, 18.8%, 25.9%) | |
| HSL | hsl(225, 22%, 21%) | |
| HSV / HSB | hsv(225, 36%, 26%) | |
| CMYK | cmyk(36%, 27%, 0%, 74%) | |
| CIE LAB | lab(20.04, 2.57, -12.12) | |
| CIE LCH | lch(20.04, 12.39, 281.99) | |
| CIE XYZ | xyz(2.995, 2.999, 5.574) | |
| Decimal | 2764866 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #2A3042, 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 #2A3042 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.6:1 | Fail | Fail | Fail |
| Sample text | 13.13:1 | Pass | Pass | Pass |
| #2A3042 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.13:1 | Pass | Pass | Pass |
| Sample text | 1.6: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 #2A3042 looks to people with the most common types of color vision deficiency.
#2a3143Protanopia
no red cones#282f42Deuteranopia
no green cones#233436Tritanopia
no blue cones#303030Achromatopsia
no color vision
CSS examples
.background { background-color: #2a3042; }
.text { color: #2a3042; }
.border { border: 2px solid #2a3042; }
.transparent { background-color: rgb(42 48 66 / 50%); }
.gradient { background: linear-gradient(to right, #2a3042, #302a42); }
Similar colors
#303543Total Eclipse#333344Shuriken#21263aMidnight Express#1e2433Moonless Mystery#1c2841Eternal Darkness#2c2e47Midnight Masquerade#35343fWitches Cauldron#2c2a35Haiti
Closest common color name: Gunmetal.
Questions
- What color is #2A3042?
- #2A3042 is a dark, grayish blue, closest to the named color Total Eclipse. It belongs to the gray family of colors.
- What is the RGB value of #2A3042?
- The RGB value is 42, 48, 66: 42 red, 48 green and 66 blue on a 0 to 255 scale.
- What is the complementary color of #2A3042?
- The complementary color is #423C2A, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #2A3042?
- White text. Black text has a contrast ratio of 1.6:1 and white text 13.13:1. WCAG asks for at least 4.5:1 for normal text.