#342F58 color
The hex color #342F58 is a dark, desaturated blue.
In the RGB color model it is made of 20.4% red, 18.4% green and 34.5% blue (52, 47, 88).
Its hue angle is 247°, with 30% saturation and 26% lightness. For print, the CMYK equivalent is 41% cyan, 47% magenta, 0% yellow and 65% black.
The closest named color is Purple Noir (#322C56), a difference of 1 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 12.4:1).
#342F58 color codes
| HEX | #342F58 | |
|---|---|---|
| RGB | rgb(52, 47, 88) | |
| RGB percent | rgb(20.4%, 18.4%, 34.5%) | |
| HSL | hsl(247, 30%, 26%) | |
| HSV / HSB | hsv(247, 47%, 35%) | |
| CMYK | cmyk(41%, 47%, 0%, 65%) | |
| CIE LAB | lab(21.83, 13.63, -24.04) | |
| CIE LCH | lch(21.83, 27.64, 299.56) | |
| CIE XYZ | xyz(4.194, 3.468, 9.679) | |
| Decimal | 3419992 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #342F58, 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 #342F58 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.69:1 | Fail | Fail | Fail |
| Sample text | 12.4:1 | Pass | Pass | Pass |
| #342F58 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.4: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 #342F58 looks to people with the most common types of color vision deficiency.
#21355aProtanopia
no red cones#213357Deuteranopia
no green cones#2a373fTritanopia
no blue cones#343434Achromatopsia
no color vision
CSS examples
.background { background-color: #342f58; }
.text { color: #342f58; }
.border { border: 2px solid #342f58; }
.transparent { background-color: rgb(52 47 88 / 50%); }
.gradient { background: linear-gradient(to right, #342f58, #482f58); }
Similar colors
#322c56Purple Noir#2c2c57Deep Sea Base#372d52Midnight Pie#2e305eGalaxea#2a2551Pāua#3c2f4eSanctum of Shadows#3d3d63Storm Is Coming#2b3458Midnight Escapade
Closest common color name: Oxford Blue.
Questions
- What color is #342F58?
- #342F58 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 #342F58?
- The RGB value is 52, 47, 88: 52 red, 47 green and 88 blue on a 0 to 255 scale.
- What is the complementary color of #342F58?
- The complementary color is #53582F, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #342F58?
- White text. Black text has a contrast ratio of 1.69:1 and white text 12.4:1. WCAG asks for at least 4.5:1 for normal text.