#34314D color
The hex color #34314D is a dark, grayish blue.
In the RGB color model it is made of 20.4% red, 19.2% green and 30.2% blue (52, 49, 77).
Its hue angle is 246°, with 22% saturation and 25% lightness. For print, the CMYK equivalent is 32% cyan, 36% magenta, 0% yellow and 70% black.
The closest named color is Midnight Masquerade (#2C2E47), a difference of 2.8 ΔE, a small difference.
White text is the more readable choice on this background (contrast 12.41:1).
#34314D color codes
| HEX | #34314D | |
|---|---|---|
| RGB | rgb(52, 49, 77) | |
| RGB percent | rgb(20.4%, 19.2%, 30.2%) | |
| HSL | hsl(246, 22%, 25%) | |
| HSV / HSB | hsv(246, 36%, 30%) | |
| CMYK | cmyk(32%, 36%, 0%, 70%) | |
| CIE LAB | lab(21.81, 8.8, -16.74) | |
| CIE LCH | lch(21.81, 18.92, 297.74) | |
| CIE XYZ | xyz(3.854, 3.462, 7.485) | |
| Decimal | 3420493 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #34314D, 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 #34314D | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.69:1 | Fail | Fail | Fail |
| Sample text | 12.41:1 | Pass | Pass | Pass |
| #34314D as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.41: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 #34314D looks to people with the most common types of color vision deficiency.
#29354eProtanopia
no red cones#29344cDeuteranopia
no green cones#2e363bTritanopia
no blue cones#343434Achromatopsia
no color vision
CSS examples
.background { background-color: #34314d; }
.text { color: #34314d; }
.border { border: 2px solid #34314d; }
.transparent { background-color: rgb(52 49 77 / 50%); }
.gradient { background: linear-gradient(to right, #34314d, #42314d); }
Similar colors
#2c2e47Midnight Masquerade#3f354fMaharaja#3c2f4eSanctum of Shadows#372d52Midnight Pie#322c56Purple Noir#42364cCall It a Night#2b3458Midnight Escapade#333344Shuriken
Closest common color name: Dark Purple.
Questions
- What color is #34314D?
- #34314D is a dark, grayish blue, closest to the named color Midnight Masquerade. It belongs to the blue family of colors.
- What is the RGB value of #34314D?
- The RGB value is 52, 49, 77: 52 red, 49 green and 77 blue on a 0 to 255 scale.
- What is the complementary color of #34314D?
- The complementary color is #4A4D31, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #34314D?
- White text. Black text has a contrast ratio of 1.69:1 and white text 12.41:1. WCAG asks for at least 4.5:1 for normal text.