#342B59 color
The hex color #342B59 is a dark, desaturated violet.
In the RGB color model it is made of 20.4% red, 16.9% green and 34.9% blue (52, 43, 89).
Its hue angle is 252°, with 35% saturation and 26% lightness. For print, the CMYK equivalent is 42% cyan, 52% magenta, 0% yellow and 65% black.
The closest named color is Purple Noir (#322C56), a difference of 1.3 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 12.84:1).
#342B59 color codes
| HEX | #342B59 | |
|---|---|---|
| RGB | rgb(52, 43, 89) | |
| RGB percent | rgb(20.4%, 16.9%, 34.9%) | |
| HSL | hsl(252, 35%, 26%) | |
| HSV / HSB | hsv(252, 52%, 35%) | |
| CMYK | cmyk(42%, 52%, 0%, 65%) | |
| CIE LAB | lab(20.75, 16.72, -26.42) | |
| CIE LCH | lch(20.75, 31.26, 302.32) | |
| CIE XYZ | xyz(4.083, 3.179, 9.848) | |
| Decimal | 3418969 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #342B59, 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 #342B59 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.64:1 | Fail | Fail | Fail |
| Sample text | 12.84:1 | Pass | Pass | Pass |
| #342B59 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.84:1 | Pass | Pass | Pass |
| Sample text | 1.64: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 #342B59 looks to people with the most common types of color vision deficiency.
#1a335bProtanopia
no red cones#1a3158Deuteranopia
no green cones#2a343dTritanopia
no blue cones#323232Achromatopsia
no color vision
CSS examples
.background { background-color: #342b59; }
.text { color: #342b59; }
.border { border: 2px solid #342b59; }
.transparent { background-color: rgb(52 43 89 / 50%); }
.gradient { background: linear-gradient(to right, #342b59, #4b2b59); }
Similar colors
#322c56Purple Noir#2a2551Pāua#2c2c57Deep Sea Base#372d52Midnight Pie#2e305eGalaxea#372354Stormy Night#222255Spacescape#231c4dSilent Orbit
Closest common color name: Midnight Blue.
Questions
- What color is #342B59?
- #342B59 is a dark, desaturated violet, closest to the named color Purple Noir. It belongs to the blue family of colors.
- What is the RGB value of #342B59?
- The RGB value is 52, 43, 89: 52 red, 43 green and 89 blue on a 0 to 255 scale.
- What is the complementary color of #342B59?
- The complementary color is #50592B, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #342B59?
- White text. Black text has a contrast ratio of 1.64:1 and white text 12.84:1. WCAG asks for at least 4.5:1 for normal text.