#1F031B color
The hex color #1F031B is a very dark, vivid magenta.
In the RGB color model it is made of 12.2% red, 1.2% green and 10.6% blue (31, 3, 27).
Its hue angle is 309°, with 82% saturation and 7% lightness. For print, the CMYK equivalent is 0% cyan, 90% magenta, 13% yellow and 88% black.
The closest named color is Shot in the Dark (#1D0D1D), a difference of 3.8 ΔE, a small difference.
White text is the more readable choice on this background (contrast 19.32:1).
#1F031B color codes
| HEX | #1F031B | |
|---|---|---|
| RGB | rgb(31, 3, 27) | |
| RGB percent | rgb(12.2%, 1.2%, 10.6%) | |
| HSL | hsl(309, 82%, 7%) | |
| HSV / HSB | hsv(309, 90%, 12%) | |
| CMYK | cmyk(0%, 90%, 13%, 88%) | |
| CIE LAB | lab(3.94, 15.62, -8.59) | |
| CIE LCH | lch(3.94, 17.83, 331.21) | |
| CIE XYZ | xyz(0.795, 0.436, 1.079) | |
| Decimal | 2032411 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #1F031B, 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 #1F031B | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.09:1 | Fail | Fail | Fail |
| Sample text | 19.32:1 | Pass | Pass | Pass |
| #1F031B as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 19.32:1 | Pass | Pass | Pass |
| Sample text | 1.09: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 #1F031B looks to people with the most common types of color vision deficiency.
#030b1cProtanopia
no red cones#0b0f1aDeuteranopia
no green cones#21050dTritanopia
no blue cones#0e0e0eAchromatopsia
no color vision
CSS examples
.background { background-color: #1f031b; }
.text { color: #1f031b; }
.border { border: 2px solid #1f031b; }
.transparent { background-color: rgb(31 3 27 / 50%); }
.gradient { background: linear-gradient(to right, #1f031b, #1f030d); }
Similar colors
#1d0d1dShot in the Dark#220022Black Sabbath#220011Belladonna#2b0f2eDark Prom Queen#180614Crow#2c1620Black Cherry#301934Dark Purple#110011Glossy Black
Questions
- What color is #1F031B?
- #1F031B is a very dark, vivid magenta, closest to the named color Shot in the Dark. It belongs to the black family of colors.
- What is the RGB value of #1F031B?
- The RGB value is 31, 3, 27: 31 red, 3 green and 27 blue on a 0 to 255 scale.
- What is the complementary color of #1F031B?
- The complementary color is #031F07, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #1F031B?
- White text. Black text has a contrast ratio of 1.09:1 and white text 19.32:1. WCAG asks for at least 4.5:1 for normal text.