#342F3F color
The hex color #342F3F is a dark, grayish violet.
In the RGB color model it is made of 20.4% red, 18.4% green and 24.7% blue (52, 47, 63).
Its hue angle is 259°, with 15% saturation and 22% lightness. For print, the CMYK equivalent is 17% cyan, 25% magenta, 0% yellow and 75% black.
The closest named color is Shuriken (#333344), a difference of 2.7 ΔE, a small difference.
White text is the more readable choice on this background (contrast 12.93:1).
#342F3F color codes
| HEX | #342F3F | |
|---|---|---|
| RGB | rgb(52, 47, 63) | |
| RGB percent | rgb(20.4%, 18.4%, 24.7%) | |
| HSL | hsl(259, 15%, 22%) | |
| HSV / HSB | hsv(259, 25%, 25%) | |
| CMYK | cmyk(17%, 25%, 0%, 75%) | |
| CIE LAB | lab(20.53, 6.16, -9.25) | |
| CIE LCH | lch(20.53, 11.12, 303.67) | |
| CIE XYZ | xyz(3.33, 3.122, 5.129) | |
| Decimal | 3419967 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #342F3F, 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 #342F3F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.62:1 | Fail | Fail | Fail |
| Sample text | 12.93:1 | Pass | Pass | Pass |
| #342F3F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.93: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 #342F3F looks to people with the most common types of color vision deficiency.
#2c3140Protanopia
no red cones#2d313fDeuteranopia
no green cones#323134Tritanopia
no blue cones#313131Achromatopsia
no color vision
CSS examples
.background { background-color: #342f3f; }
.text { color: #342f3f; }
.border { border: 2px solid #342f3f; }
.transparent { background-color: rgb(52 47 63 / 50%); }
.gradient { background: linear-gradient(to right, #342f3f, #3c2f3f); }
Similar colors
#333344Shuriken#393540Professor Plum#2c2a35Haiti#403547Royal Decree#35343fWitches Cauldron#413d4bItalian Grape#2c2e47Midnight Masquerade#42364cCall It a Night
Closest common color name: Dark Purple.
Questions
- What color is #342F3F?
- #342F3F is a dark, grayish violet, closest to the named color Shuriken. It belongs to the gray family of colors.
- What is the RGB value of #342F3F?
- The RGB value is 52, 47, 63: 52 red, 47 green and 63 blue on a 0 to 255 scale.
- What is the complementary color of #342F3F?
- The complementary color is #3A3F2F, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #342F3F?
- White text. Black text has a contrast ratio of 1.62:1 and white text 12.93:1. WCAG asks for at least 4.5:1 for normal text.