#342B3D color
The hex color #342B3D is a dark, grayish violet.
In the RGB color model it is made of 20.4% red, 16.9% green and 23.9% blue (52, 43, 61).
Its hue angle is 270°, with 17% saturation and 20% lightness. For print, the CMYK equivalent is 15% cyan, 30% magenta, 0% yellow and 76% black.
The closest named color is Royal Decree (#403547), a difference of 3.4 ΔE, a small difference.
White text is the more readable choice on this background (contrast 13.47:1).
#342B3D color codes
| HEX | #342B3D | |
|---|---|---|
| RGB | rgb(52, 43, 61) | |
| RGB percent | rgb(20.4%, 16.9%, 23.9%) | |
| HSL | hsl(270, 17%, 20%) | |
| HSV / HSB | hsv(270, 30%, 24%) | |
| CMYK | cmyk(15%, 30%, 0%, 76%) | |
| CIE LAB | lab(19.2, 8.4, -9.9) | |
| CIE LCH | lch(19.2, 12.98, 310.29) | |
| CIE XYZ | xyz(3.122, 2.795, 4.789) | |
| Decimal | 3418941 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #342B3D, 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 #342B3D | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.56:1 | Fail | Fail | Fail |
| Sample text | 13.47:1 | Pass | Pass | Pass |
| #342B3D as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.47:1 | Pass | Pass | Pass |
| Sample text | 1.56: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 #342B3D looks to people with the most common types of color vision deficiency.
#282e3eProtanopia
no red cones#2a2f3cDeuteranopia
no green cones#332d31Tritanopia
no blue cones#2f2f2fAchromatopsia
no color vision
CSS examples
.background { background-color: #342b3d; }
.text { color: #342b3d; }
.border { border: 2px solid #342b3d; }
.transparent { background-color: rgb(52 43 61 / 50%); }
.gradient { background: linear-gradient(to right, #342b3d, #3d2b3d); }
Similar colors
#403547Royal Decree#42364cCall It a Night#3f354fMaharaja#333344Shuriken#342931Melanzane#443240Voodoo#2c2a35Haiti#393540Professor Plum
Closest common color name: Dark Purple.
Questions
- What color is #342B3D?
- #342B3D is a dark, grayish violet, closest to the named color Royal Decree. It belongs to the gray family of colors.
- What is the RGB value of #342B3D?
- The RGB value is 52, 43, 61: 52 red, 43 green and 61 blue on a 0 to 255 scale.
- What is the complementary color of #342B3D?
- The complementary color is #343D2B, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #342B3D?
- White text. Black text has a contrast ratio of 1.56:1 and white text 13.47:1. WCAG asks for at least 4.5:1 for normal text.