#342B86 color
The hex color #342B86 is a dark, moderate blue.
In the RGB color model it is made of 20.4% red, 16.9% green and 52.5% blue (52, 43, 134).
Its hue angle is 246°, with 51% saturation and 35% lightness. For print, the CMYK equivalent is 61% cyan, 68% magenta, 0% yellow and 47% black.
The closest named color is Perfect Dark (#313390), a difference of 2.8 ΔE, a small difference.
White text is the more readable choice on this background (contrast 11.44:1).
#342B86 color codes
| HEX | #342B86 | |
|---|---|---|
| RGB | rgb(52, 43, 134) | |
| RGB percent | rgb(20.4%, 16.9%, 52.5%) | |
| HSL | hsl(246, 51%, 35%) | |
| HSV / HSB | hsv(246, 68%, 53%) | |
| CMYK | cmyk(61%, 68%, 0%, 47%) | |
| CIE LAB | lab(24.25, 31.82, -49.73) | |
| CIE LCH | lch(24.25, 59.03, 302.61) | |
| CIE XYZ | xyz(6.582, 4.179, 23.009) | |
| Decimal | 3419014 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #342B86, 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 #342B86 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.84:1 | Fail | Fail | Fail |
| Sample text | 11.44:1 | Pass | Pass | Pass |
| #342B86 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.44:1 | Pass | Pass | Pass |
| Sample text | 1.84: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 #342B86 looks to people with the most common types of color vision deficiency.
#003d89Protanopia
no red cones#003684Deuteranopia
no green cones#004254Tritanopia
no blue cones#3a3a3aAchromatopsia
no color vision
CSS examples
.background { background-color: #342b86; }
.text { color: #342b86; }
.border { border: 2px solid #342b86; }
.transparent { background-color: rgb(52 43 134 / 50%); }
.gradient { background: linear-gradient(to right, #342b86, #622b86); }
Similar colors
#313390Perfect Dark#2b3191Royal Night#443388Majestic Eggplant#332277Deep Space Rodeo#273287Intergalactic Highway#333399Bluebell#312297Gentian Blue#2c319bDepths of Night
Closest common color name: Dark Slate Blue.
Questions
- What color is #342B86?
- #342B86 is a dark, moderate blue, closest to the named color Perfect Dark. It belongs to the blue family of colors.
- What is the RGB value of #342B86?
- The RGB value is 52, 43, 134: 52 red, 43 green and 134 blue on a 0 to 255 scale.
- What is the complementary color of #342B86?
- The complementary color is #7D862B, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #342B86?
- White text. Black text has a contrast ratio of 1.84:1 and white text 11.44:1. WCAG asks for at least 4.5:1 for normal text.