#342D5F color
The hex color #342D5F is a dark, desaturated blue.
In the RGB color model it is made of 20.4% red, 17.6% green and 37.3% blue (52, 45, 95).
Its hue angle is 248°, with 36% saturation and 27% lightness. For print, the CMYK equivalent is 45% cyan, 53% magenta, 0% yellow and 63% black.
The closest named color is Purple Noir (#322C56), a difference of 2.2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 12.45:1).
#342D5F color codes
| HEX | #342D5F | |
|---|---|---|
| RGB | rgb(52, 45, 95) | |
| RGB percent | rgb(20.4%, 17.6%, 37.3%) | |
| HSL | hsl(248, 36%, 27%) | |
| HSV / HSB | hsv(248, 53%, 37%) | |
| CMYK | cmyk(45%, 53%, 0%, 63%) | |
| CIE LAB | lab(21.7, 17.3, -28.86) | |
| CIE LCH | lch(21.7, 33.65, 300.93) | |
| CIE XYZ | xyz(4.42, 3.433, 11.254) | |
| Decimal | 3419487 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #342D5F, 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 #342D5F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.69:1 | Fail | Fail | Fail |
| Sample text | 12.45:1 | Pass | Pass | Pass |
| #342D5F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.45:1 | Pass | Pass | Pass |
| Sample text | 1.69: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 #342D5F looks to people with the most common types of color vision deficiency.
#183561Protanopia
no red cones#18335eDeuteranopia
no green cones#273741Tritanopia
no blue cones#343434Achromatopsia
no color vision
CSS examples
.background { background-color: #342d5f; }
.text { color: #342d5f; }
.border { border: 2px solid #342d5f; }
.transparent { background-color: rgb(52 45 95 / 50%); }
.gradient { background: linear-gradient(to right, #342d5f, #4d2d5f); }
Similar colors
#322c56Purple Noir#2e305eGalaxea#2c2c57Deep Sea Base#2a2551Pāua#372d52Midnight Pie#222255Spacescape#2e2364Indie Go#372354Stormy Night
Closest common color name: Dark Slate Blue.
Questions
- What color is #342D5F?
- #342D5F is a dark, desaturated blue, closest to the named color Purple Noir. It belongs to the blue family of colors.
- What is the RGB value of #342D5F?
- The RGB value is 52, 45, 95: 52 red, 45 green and 95 blue on a 0 to 255 scale.
- What is the complementary color of #342D5F?
- The complementary color is #585F2D, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #342D5F?
- White text. Black text has a contrast ratio of 1.69:1 and white text 12.45:1. WCAG asks for at least 4.5:1 for normal text.