#342939 color
The hex color #342939 is a very dark, grayish magenta.
In the RGB color model it is made of 20.4% red, 16.1% green and 22.4% blue (52, 41, 57).
Its hue angle is 281°, with 16% saturation and 19% lightness. For print, the CMYK equivalent is 9% cyan, 28% magenta, 0% yellow and 78% black.
The closest named color is Royal Decree (#403547), a difference of 4 ΔE, a small difference.
White text is the more readable choice on this background (contrast 13.8:1).
#342939 color codes
| HEX | #342939 | |
|---|---|---|
| RGB | rgb(52, 41, 57) | |
| RGB percent | rgb(20.4%, 16.1%, 22.4%) | |
| HSL | hsl(281, 16%, 19%) | |
| HSV / HSB | hsv(281, 28%, 22%) | |
| CMYK | cmyk(9%, 28%, 0%, 78%) | |
| CIE LAB | lab(18.42, 8.75, -8.34) | |
| CIE LCH | lch(18.42, 12.09, 316.36) | |
| CIE XYZ | xyz(2.948, 2.611, 4.219) | |
| Decimal | 3418425 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #342939, 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 #342939 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.52:1 | Fail | Fail | Fail |
| Sample text | 13.8:1 | Pass | Pass | Pass |
| #342939 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.8:1 | Pass | Pass | Pass |
| Sample text | 1.52: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 #342939 looks to people with the most common types of color vision deficiency.
#272c3aProtanopia
no red cones#292d38Deuteranopia
no green cones#342b2fTritanopia
no blue cones#2d2d2dAchromatopsia
no color vision
CSS examples
.background { background-color: #342939; }
.text { color: #342939; }
.border { border: 2px solid #342939; }
.transparent { background-color: rgb(52 41 57 / 50%); }
.gradient { background: linear-gradient(to right, #342939, #392936); }
Similar colors
#403547Royal Decree#342931Melanzane#443240Voodoo#42364cCall It a Night#2c2a35Haiti#393540Professor Plum#3f354fMaharaja#352b30Mystical Shadow
Closest common color name: Dark Purple.
Questions
- What color is #342939?
- #342939 is a very dark, grayish magenta, closest to the named color Royal Decree. It belongs to the gray family of colors.
- What is the RGB value of #342939?
- The RGB value is 52, 41, 57: 52 red, 41 green and 57 blue on a 0 to 255 scale.
- What is the complementary color of #342939?
- The complementary color is #2E3929, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #342939?
- White text. Black text has a contrast ratio of 1.52:1 and white text 13.8:1. WCAG asks for at least 4.5:1 for normal text.