#34284C color
The hex color #34284C is a dark, desaturated violet.
In the RGB color model it is made of 20.4% red, 15.7% green and 29.8% blue (52, 40, 76).
Its hue angle is 260°, with 31% saturation and 23% lightness. For print, the CMYK equivalent is 32% cyan, 47% magenta, 0% yellow and 70% black.
The closest named color is Midnight Pie (#372D52), a difference of 1.7 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 13.51:1).
#34284C color codes
| HEX | #34284C | |
|---|---|---|
| RGB | rgb(52, 40, 76) | |
| RGB percent | rgb(20.4%, 15.7%, 29.8%) | |
| HSL | hsl(260, 31%, 23%) | |
| HSV / HSB | hsv(260, 47%, 30%) | |
| CMYK | cmyk(32%, 47%, 0%, 70%) | |
| CIE LAB | lab(19.1, 14.74, -20.32) | |
| CIE LCH | lch(19.1, 25.1, 305.96) | |
| CIE XYZ | xyz(3.479, 2.769, 7.187) | |
| Decimal | 3418188 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #34284C, 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 #34284C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.55:1 | Fail | Fail | Fail |
| Sample text | 13.51:1 | Pass | Pass | Pass |
| #34284C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.51:1 | Pass | Pass | Pass |
| Sample text | 1.55: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 #34284C looks to people with the most common types of color vision deficiency.
#1e2e4dProtanopia
no red cones#202e4bDeuteranopia
no green cones#2f2e36Tritanopia
no blue cones#2e2e2eAchromatopsia
no color vision
CSS examples
.background { background-color: #34284c; }
.text { color: #34284c; }
.border { border: 2px solid #34284c; }
.transparent { background-color: rgb(52 40 76 / 50%); }
.gradient { background: linear-gradient(to right, #34284c, #46284c); }
Similar colors
#372d52Midnight Pie#2a2243Midnight Velvet#3c2f4eSanctum of Shadows#322c56Purple Noir#2a2551Pāua#372354Stormy Night#222244Black Market#2c2c57Deep Sea Base
Closest common color name: Dark Purple.
Questions
- What color is #34284C?
- #34284C is a dark, desaturated violet, closest to the named color Midnight Pie. It belongs to the purple family of colors.
- What is the RGB value of #34284C?
- The RGB value is 52, 40, 76: 52 red, 40 green and 76 blue on a 0 to 255 scale.
- What is the complementary color of #34284C?
- The complementary color is #404C28, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #34284C?
- White text. Black text has a contrast ratio of 1.55:1 and white text 13.51:1. WCAG asks for at least 4.5:1 for normal text.