#40203C color
The hex color #40203C is a very dark, desaturated magenta.
In the RGB color model it is made of 25.1% red, 12.5% green and 23.5% blue (64, 32, 60).
Its hue angle is 308°, with 33% saturation and 19% lightness. For print, the CMYK equivalent is 0% cyan, 50% magenta, 6% yellow and 75% black.
The closest named color is Purple Void (#442244), a difference of 2.2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 14.1:1).
#40203C color codes
| HEX | #40203C | |
|---|---|---|
| RGB | rgb(64, 32, 60) | |
| RGB percent | rgb(25.1%, 12.5%, 23.5%) | |
| HSL | hsl(308, 33%, 19%) | |
| HSV / HSB | hsv(308, 50%, 25%) | |
| CMYK | cmyk(0%, 50%, 6%, 75%) | |
| CIE LAB | lab(17.69, 20.28, -11.4) | |
| CIE LCH | lch(17.69, 23.27, 330.67) | |
| CIE XYZ | xyz(3.446, 2.449, 4.565) | |
| Decimal | 4202556 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #40203C, 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 #40203C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.49:1 | Fail | Fail | Fail |
| Sample text | 14.1:1 | Pass | Pass | Pass |
| #40203C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.1:1 | Pass | Pass | Pass |
| Sample text | 1.49: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 #40203C looks to people with the most common types of color vision deficiency.
#1f293dProtanopia
no red cones#282d3bDeuteranopia
no green cones#42222bTritanopia
no blue cones#2b2b2bAchromatopsia
no color vision
CSS examples
.background { background-color: #40203c; }
.text { color: #40203c; }
.border { border: 2px solid #40203c; }
.transparent { background-color: rgb(64 32 60 / 50%); }
.gradient { background: linear-gradient(to right, #40203c, #40202c); }
Similar colors
#442244Purple Void#391531Nightly Voyager#3b193fCreatures of the Night#301934Dark Purple#4f284bMurasaki#43182fBlackberry#2b0f2eDark Prom Queen#4e334eShadow Purple
Questions
- What color is #40203C?
- #40203C is a very dark, desaturated magenta, closest to the named color Purple Void. It belongs to the purple family of colors.
- What is the RGB value of #40203C?
- The RGB value is 64, 32, 60: 64 red, 32 green and 60 blue on a 0 to 255 scale.
- What is the complementary color of #40203C?
- The complementary color is #204024, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #40203C?
- White text. Black text has a contrast ratio of 1.49:1 and white text 14.1:1. WCAG asks for at least 4.5:1 for normal text.