#1F1339 color
The hex color #1F1339 is a very dark, moderate violet.
In the RGB color model it is made of 12.2% red, 7.5% green and 22.4% blue (31, 19, 57).
Its hue angle is 259°, with 50% saturation and 15% lightness. For print, the CMYK equivalent is 46% cyan, 67% magenta, 0% yellow and 78% black.
The closest named color is Midnight Monarch (#1C0F33), a difference of 1.4 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 17.35:1).
#1F1339 color codes
| HEX | #1F1339 | |
|---|---|---|
| RGB | rgb(31, 19, 57) | |
| RGB percent | rgb(12.2%, 7.5%, 22.4%) | |
| HSL | hsl(259, 50%, 15%) | |
| HSV / HSB | hsv(259, 67%, 22%) | |
| CMYK | cmyk(46%, 67%, 0%, 78%) | |
| CIE LAB | lab(9.42, 16.85, -22.61) | |
| CIE LCH | lch(9.42, 28.2, 306.69) | |
| CIE XYZ | xyz(1.536, 1.052, 3.992) | |
| Decimal | 2036537 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #1F1339, 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 #1F1339 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.21:1 | Fail | Fail | Fail |
| Sample text | 17.35:1 | Pass | Pass | Pass |
| #1F1339 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 17.35:1 | Pass | Pass | Pass |
| Sample text | 1.21: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 #1F1339 looks to people with the most common types of color vision deficiency.
#021b3aProtanopia
no red cones#041a38Deuteranopia
no green cones#181b23Tritanopia
no blue cones#1a1a1aAchromatopsia
no color vision
CSS examples
.background { background-color: #1f1339; }
.text { color: #1f1339; }
.border { border: 2px solid #1f1339; }
.transparent { background-color: rgb(31 19 57 / 50%); }
.gradient { background: linear-gradient(to right, #1f1339, #321339); }
Similar colors
#1c0f33Midnight Monarch#160435Quiet Abyss#211d49Azulado#231c4dSilent Orbit#2a2243Midnight Velvet#111144Deadly Depths#071037Infinite Night#222244Black Market
Closest common color name: Dark Purple.
Questions
- What color is #1F1339?
- #1F1339 is a very dark, moderate violet, closest to the named color Midnight Monarch. It belongs to the black family of colors.
- What is the RGB value of #1F1339?
- The RGB value is 31, 19, 57: 31 red, 19 green and 57 blue on a 0 to 255 scale.
- What is the complementary color of #1F1339?
- The complementary color is #2D3913, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #1F1339?
- White text. Black text has a contrast ratio of 1.21:1 and white text 17.35:1. WCAG asks for at least 4.5:1 for normal text.