#201731 color
The hex color #201731 is a very dark, desaturated violet.
In the RGB color model it is made of 12.5% red, 9% green and 19.2% blue (32, 23, 49).
Its hue angle is 261°, with 36% saturation and 14% lightness. For print, the CMYK equivalent is 35% cyan, 53% magenta, 0% yellow and 81% black.
The closest named color is Midnight Monarch (#1C0F33), a difference of 4.2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 17.1:1).
#201731 color codes
| HEX | #201731 | |
|---|---|---|
| RGB | rgb(32, 23, 49) | |
| RGB percent | rgb(12.5%, 9%, 19.2%) | |
| HSL | hsl(261, 36%, 14%) | |
| HSV / HSB | hsv(261, 53%, 19%) | |
| CMYK | cmyk(35%, 53%, 0%, 81%) | |
| CIE LAB | lab(10.12, 11.6, -15.7) | |
| CIE LCH | lch(10.12, 19.52, 306.47) | |
| CIE XYZ | xyz(1.456, 1.142, 3.049) | |
| Decimal | 2103089 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #201731, 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 #201731 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.23:1 | Fail | Fail | Fail |
| Sample text | 17.1:1 | Pass | Pass | Pass |
| #201731 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 17.1:1 | Pass | Pass | Pass |
| Sample text | 1.23: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 #201731 looks to people with the most common types of color vision deficiency.
#0f1c32Protanopia
no red cones#111b30Deuteranopia
no green cones#1d1c21Tritanopia
no blue cones#1c1c1cAchromatopsia
no color vision
CSS examples
.background { background-color: #201731; }
.text { color: #201731; }
.border { border: 2px solid #201731; }
.transparent { background-color: rgb(32 23 49 / 50%); }
.gradient { background: linear-gradient(to right, #201731, #2d1731); }
Similar colors
#1c0f33Midnight Monarch#2a2243Midnight Velvet#301934Dark Purple#222244Black Market#151931Dark Knight#161d3bNightwalker#1d0d1dShot in the Dark#2b0f2eDark Prom Queen
Questions
- What color is #201731?
- #201731 is a very dark, desaturated violet, closest to the named color Midnight Monarch. It belongs to the black family of colors.
- What is the RGB value of #201731?
- The RGB value is 32, 23, 49: 32 red, 23 green and 49 blue on a 0 to 255 scale.
- What is the complementary color of #201731?
- The complementary color is #283117, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #201731?
- White text. Black text has a contrast ratio of 1.23:1 and white text 17.1:1. WCAG asks for at least 4.5:1 for normal text.