#342C42 color
The hex color #342C42 is a dark, grayish violet.
In the RGB color model it is made of 20.4% red, 17.3% green and 25.9% blue (52, 44, 66).
Its hue angle is 262°, with 20% saturation and 22% lightness. For print, the CMYK equivalent is 21% cyan, 33% magenta, 0% yellow and 74% black.
The closest named color is Maharaja (#3F354F), a difference of 3.5 ΔE, a small difference.
White text is the more readable choice on this background (contrast 13.25:1).
#342C42 color codes
| HEX | #342C42 | |
|---|---|---|
| RGB | rgb(52, 44, 66) | |
| RGB percent | rgb(20.4%, 17.3%, 25.9%) | |
| HSL | hsl(262, 20%, 22%) | |
| HSV / HSB | hsv(262, 33%, 26%) | |
| CMYK | cmyk(21%, 33%, 0%, 74%) | |
| CIE LAB | lab(19.74, 9.06, -12.51) | |
| CIE LCH | lch(19.74, 15.45, 305.93) | |
| CIE XYZ | xyz(3.3, 2.925, 5.544) | |
| Decimal | 3419202 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #342C42, 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 #342C42 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.58:1 | Fail | Fail | Fail |
| Sample text | 13.25:1 | Pass | Pass | Pass |
| #342C42 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.25:1 | Pass | Pass | Pass |
| Sample text | 1.58: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 #342C42 looks to people with the most common types of color vision deficiency.
#273043Protanopia
no red cones#293041Deuteranopia
no green cones#322f34Tritanopia
no blue cones#303030Achromatopsia
no color vision
CSS examples
.background { background-color: #342c42; }
.text { color: #342c42; }
.border { border: 2px solid #342c42; }
.transparent { background-color: rgb(52 44 66 / 50%); }
.gradient { background: linear-gradient(to right, #342c42, #3f2c42); }
Similar colors
#3f354fMaharaja#403547Royal Decree#42364cCall It a Night#3c2f4eSanctum of Shadows#2c2e47Midnight Masquerade#333344Shuriken#2a2243Midnight Velvet#372d52Midnight Pie
Closest common color name: Dark Purple.
Questions
- What color is #342C42?
- #342C42 is a dark, grayish violet, closest to the named color Maharaja. It belongs to the purple family of colors.
- What is the RGB value of #342C42?
- The RGB value is 52, 44, 66: 52 red, 44 green and 66 blue on a 0 to 255 scale.
- What is the complementary color of #342C42?
- The complementary color is #3A422C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #342C42?
- White text. Black text has a contrast ratio of 1.58:1 and white text 13.25:1. WCAG asks for at least 4.5:1 for normal text.