#1F0020 color
The hex color #1F0020 is a very dark, vivid magenta.
In the RGB color model it is made of 12.2% red, 0% green and 12.5% blue (31, 0, 32).
Its hue angle is 298°, with 100% saturation and 6% lightness. For print, the CMYK equivalent is 3% cyan, 100% magenta, 0% yellow and 87% black.
The closest named color is Black Sabbath (#220022), a difference of 1.5 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 19.46:1).
#1F0020 color codes
| HEX | #1F0020 | |
|---|---|---|
| RGB | rgb(31, 0, 32) | |
| RGB percent | rgb(12.2%, 0%, 12.5%) | |
| HSL | hsl(298, 100%, 6%) | |
| HSV / HSB | hsv(298, 100%, 13%) | |
| CMYK | cmyk(3%, 100%, 0%, 87%) | |
| CIE LAB | lab(3.57, 18.42, -13.1) | |
| CIE LCH | lch(3.57, 22.6, 324.59) | |
| CIE XYZ | xyz(0.826, 0.396, 1.399) | |
| Decimal | 2031648 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #1F0020, 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 #1F0020 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.08:1 | Fail | Fail | Fail |
| Sample text | 19.46:1 | Pass | Pass | Pass |
| #1F0020 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 19.46:1 | Pass | Pass | Pass |
| Sample text | 1.08: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 #1F0020 looks to people with the most common types of color vision deficiency.
#000a21Protanopia
no red cones#060e1fDeuteranopia
no green cones#20030eTritanopia
no blue cones#0d0d0dAchromatopsia
no color vision
CSS examples
.background { background-color: #1f0020; }
.text { color: #1f0020; }
.border { border: 2px solid #1f0020; }
.transparent { background-color: rgb(31 0 32 / 50%); }
.gradient { background: linear-gradient(to right, #1f0020, #200011); }
Similar colors
#220022Black Sabbath#2b0f2eDark Prom Queen#301934Dark Purple#1d0d1dShot in the Dark#1c0f33Midnight Monarch#220033Coal Mine#391531Nightly Voyager#220011Belladonna
Questions
- What color is #1F0020?
- #1F0020 is a very dark, vivid magenta, closest to the named color Black Sabbath. It belongs to the black family of colors.
- What is the RGB value of #1F0020?
- The RGB value is 31, 0, 32: 31 red, 0 green and 32 blue on a 0 to 255 scale.
- What is the complementary color of #1F0020?
- The complementary color is #012000, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #1F0020?
- White text. Black text has a contrast ratio of 1.08:1 and white text 19.46:1. WCAG asks for at least 4.5:1 for normal text.