#342E43 color
The hex color #342E43 is a dark, grayish violet.
In the RGB color model it is made of 20.4% red, 18% green and 26.3% blue (52, 46, 67).
Its hue angle is 257°, with 19% saturation and 22% lightness. For print, the CMYK equivalent is 22% cyan, 31% magenta, 0% yellow and 74% black.
The closest named color is Royal Decree (#403547), a difference of 3.6 ΔE, a small difference.
White text is the more readable choice on this background (contrast 12.98:1).
#342E43 color codes
| HEX | #342E43 | |
|---|---|---|
| RGB | rgb(52, 46, 67) | |
| RGB percent | rgb(20.4%, 18%, 26.3%) | |
| HSL | hsl(257, 19%, 22%) | |
| HSV / HSB | hsv(257, 31%, 26%) | |
| CMYK | cmyk(22%, 31%, 0%, 74%) | |
| CIE LAB | lab(20.4, 7.96, -12.18) | |
| CIE LCH | lch(20.4, 14.54, 303.17) | |
| CIE XYZ | xyz(3.406, 3.089, 5.726) | |
| Decimal | 3419715 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #342E43, 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 #342E43 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.62:1 | Fail | Fail | Fail |
| Sample text | 12.98:1 | Pass | Pass | Pass |
| #342E43 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.98:1 | Pass | Pass | Pass |
| Sample text | 1.62: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 #342E43 looks to people with the most common types of color vision deficiency.
#293144Protanopia
no red cones#2a3142Deuteranopia
no green cones#313135Tritanopia
no blue cones#313131Achromatopsia
no color vision
CSS examples
.background { background-color: #342e43; }
.text { color: #342e43; }
.border { border: 2px solid #342e43; }
.transparent { background-color: rgb(52 46 67 / 50%); }
.gradient { background: linear-gradient(to right, #342e43, #3e2e43); }
Similar colors
#403547Royal Decree#3f354fMaharaja#2c2e47Midnight Masquerade#333344Shuriken#42364cCall It a Night#3c2f4eSanctum of Shadows#393540Professor Plum#222233Black Velvet
Closest common color name: Dark Purple.
Questions
- What color is #342E43?
- #342E43 is a dark, grayish violet, closest to the named color Royal Decree. It belongs to the purple family of colors.
- What is the RGB value of #342E43?
- The RGB value is 52, 46, 67: 52 red, 46 green and 67 blue on a 0 to 255 scale.
- What is the complementary color of #342E43?
- The complementary color is #3D432E, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #342E43?
- White text. Black text has a contrast ratio of 1.62:1 and white text 12.98:1. WCAG asks for at least 4.5:1 for normal text.