#20004A color
The hex color #20004A is a very dark, vivid violet.
In the RGB color model it is made of 12.5% red, 0% green and 29% blue (32, 0, 74).
Its hue angle is 266°, with 100% saturation and 15% lightness. For print, the CMYK equivalent is 57% cyan, 100% magenta, 0% yellow and 71% black.
The closest named color is Your Darkness (#220044), a difference of 1.5 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 18.1:1).
#20004A color codes
| HEX | #20004A | |
|---|---|---|
| RGB | rgb(32, 0, 74) | |
| RGB percent | rgb(12.5%, 0%, 29%) | |
| HSL | hsl(266, 100%, 15%) | |
| HSV / HSB | hsv(266, 100%, 29%) | |
| CMYK | cmyk(57%, 100%, 0%, 71%) | |
| CIE LAB | lab(7.24, 33.87, -38.24) | |
| CIE LCH | lch(7.24, 51.09, 311.54) | |
| CIE XYZ | xyz(1.831, 0.801, 6.535) | |
| Decimal | 2097226 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #20004A, 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 #20004A | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.16:1 | Fail | Fail | Fail |
| Sample text | 18.1:1 | Pass | Pass | Pass |
| #20004A as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 18.1:1 | Pass | Pass | Pass |
| Sample text | 1.16: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 #20004A looks to people with the most common types of color vision deficiency.
#00174cProtanopia
no red cones#001549Deuteranopia
no green cones#121828Tritanopia
no blue cones#161616Achromatopsia
no color vision
CSS examples
.background { background-color: #20004a; }
.text { color: #20004a; }
.border { border: 2px solid #20004a; }
.transparent { background-color: rgb(32 0 74 / 50%); }
.gradient { background: linear-gradient(to right, #20004a, #45004a); }
Similar colors
#220044Your Darkness#330055Hollow Knight#0f084bSilent Twilight#340059Cotinga Purple#0a0555Ravenclaw#2d135fVoldemort#220066Blackmail#150f5bSpace Colonisation
Closest common color name: Midnight Blue.
Questions
- What color is #20004A?
- #20004A is a very dark, vivid violet, closest to the named color Your Darkness. It belongs to the black family of colors.
- What is the RGB value of #20004A?
- The RGB value is 32, 0, 74: 32 red, 0 green and 74 blue on a 0 to 255 scale.
- What is the complementary color of #20004A?
- The complementary color is #2A4A00, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #20004A?
- White text. Black text has a contrast ratio of 1.16:1 and white text 18.1:1. WCAG asks for at least 4.5:1 for normal text.