#332838 color
The hex color #332838 is a very dark, grayish magenta.
In the RGB color model it is made of 20% red, 15.7% green and 22% blue (51, 40, 56).
Its hue angle is 281°, with 17% saturation and 19% lightness. For print, the CMYK equivalent is 9% cyan, 29% magenta, 0% yellow and 78% black.
The closest named color is Melanzane (#342931), a difference of 4 ΔE, a small difference.
White text is the more readable choice on this background (contrast 13.99:1).
#332838 color codes
| HEX | #332838 | |
|---|---|---|
| RGB | rgb(51, 40, 56) | |
| RGB percent | rgb(20%, 15.7%, 22%) | |
| HSL | hsl(281, 17%, 19%) | |
| HSV / HSB | hsv(281, 29%, 22%) | |
| CMYK | cmyk(9%, 29%, 0%, 78%) | |
| CIE LAB | lab(17.95, 8.78, -8.36) | |
| CIE LCH | lch(17.95, 12.12, 316.38) | |
| CIE XYZ | xyz(2.838, 2.507, 4.075) | |
| Decimal | 3352632 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #332838, 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 #332838 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.5:1 | Fail | Fail | Fail |
| Sample text | 13.99:1 | Pass | Pass | Pass |
| #332838 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.99:1 | Pass | Pass | Pass |
| Sample text | 1.5: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 #332838 looks to people with the most common types of color vision deficiency.
#262b39Protanopia
no red cones#282c37Deuteranopia
no green cones#332a2eTritanopia
no blue cones#2c2c2cAchromatopsia
no color vision
CSS examples
.background { background-color: #332838; }
.text { color: #332838; }
.border { border: 2px solid #332838; }
.transparent { background-color: rgb(51 40 56 / 50%); }
.gradient { background: linear-gradient(to right, #332838, #382835); }
Similar colors
#342931Melanzane#403547Royal Decree#443240Voodoo#42364cCall It a Night#2c2a35Haiti#393540Professor Plum#352b30Mystical Shadow#222233Black Velvet
Closest common color name: Dark Purple.
Questions
- What color is #332838?
- #332838 is a very dark, grayish magenta, closest to the named color Melanzane. It belongs to the gray family of colors.
- What is the RGB value of #332838?
- The RGB value is 51, 40, 56: 51 red, 40 green and 56 blue on a 0 to 255 scale.
- What is the complementary color of #332838?
- The complementary color is #2D3828, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #332838?
- White text. Black text has a contrast ratio of 1.5:1 and white text 13.99:1. WCAG asks for at least 4.5:1 for normal text.