#342A81 color
The hex color #342A81 is a dark, moderate blue.
In the RGB color model it is made of 20.4% red, 16.5% green and 50.6% blue (52, 42, 129).
Its hue angle is 247°, with 51% saturation and 34% lightness. For print, the CMYK equivalent is 60% cyan, 67% magenta, 0% yellow and 49% black.
The closest named color is Deep Space Rodeo (#332277), a difference of 2.5 ΔE, a small difference.
White text is the more readable choice on this background (contrast 11.7:1).
#342A81 color codes
| HEX | #342A81 | |
|---|---|---|
| RGB | rgb(52, 42, 129) | |
| RGB percent | rgb(20.4%, 16.5%, 50.6%) | |
| HSL | hsl(247, 51%, 34%) | |
| HSV / HSB | hsv(247, 67%, 51%) | |
| CMYK | cmyk(60%, 67%, 0%, 49%) | |
| CIE LAB | lab(23.57, 30.75, -47.7) | |
| CIE LCH | lch(23.57, 56.75, 302.81) | |
| CIE XYZ | xyz(6.205, 3.971, 21.204) | |
| Decimal | 3418753 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #342A81, 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 #342A81 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.79:1 | Fail | Fail | Fail |
| Sample text | 11.7:1 | Pass | Pass | Pass |
| #342A81 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.7:1 | Pass | Pass | Pass |
| Sample text | 1.79: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 #342A81 looks to people with the most common types of color vision deficiency.
#003b84Protanopia
no red cones#00357fDeuteranopia
no green cones#074051Tritanopia
no blue cones#383838Achromatopsia
no color vision
CSS examples
.background { background-color: #342a81; }
.text { color: #342a81; }
.border { border: 2px solid #342a81; }
.transparent { background-color: rgb(52 42 129 / 50%); }
.gradient { background: linear-gradient(to right, #342a81, #5f2a81); }
Similar colors
#332277Deep Space Rodeo#443388Majestic Eggplant#313390Perfect Dark#2b3191Royal Night#273287Intergalactic Highway#3a1f76Explorer of the Galaxies#442288Galactic Civilization#333399Bluebell
Closest common color name: Midnight Blue.
Questions
- What color is #342A81?
- #342A81 is a dark, moderate blue, closest to the named color Deep Space Rodeo. It belongs to the blue family of colors.
- What is the RGB value of #342A81?
- The RGB value is 52, 42, 129: 52 red, 42 green and 129 blue on a 0 to 255 scale.
- What is the complementary color of #342A81?
- The complementary color is #77812A, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #342A81?
- White text. Black text has a contrast ratio of 1.79:1 and white text 11.7:1. WCAG asks for at least 4.5:1 for normal text.