#1F1F47 color
The hex color #1F1F47 is a dark, desaturated blue.
In the RGB color model it is made of 12.2% red, 12.2% green and 27.8% blue (31, 31, 71).
Its hue angle is 240°, with 39% saturation and 20% lightness. For print, the CMYK equivalent is 56% cyan, 56% magenta, 0% yellow and 72% black.
The closest named color is Azulado (#211D49), a difference of 1.5 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 15.61:1).
#1F1F47 color codes
| HEX | #1F1F47 | |
|---|---|---|
| RGB | rgb(31, 31, 71) | |
| RGB percent | rgb(12.2%, 12.2%, 27.8%) | |
| HSL | hsl(240, 39%, 20%) | |
| HSV / HSB | hsv(240, 56%, 28%) | |
| CMYK | cmyk(56%, 56%, 0%, 72%) | |
| CIE LAB | lab(13.98, 13.1, -25.16) | |
| CIE LCH | lch(13.98, 28.37, 297.51) | |
| CIE XYZ | xyz(2.192, 1.726, 6.178) | |
| Decimal | 2039623 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #1F1F47, 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 #1F1F47 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.35:1 | Fail | Fail | Fail |
| Sample text | 15.61:1 | Pass | Pass | Pass |
| #1F1F47 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.61:1 | Pass | Pass | Pass |
| Sample text | 1.35: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 #1F1F47 looks to people with the most common types of color vision deficiency.
#0c2548Protanopia
no red cones#082246Deuteranopia
no green cones#0f282fTritanopia
no blue cones#242424Achromatopsia
no color vision
CSS examples
.background { background-color: #1f1f47; }
.text { color: #1f1f47; }
.border { border: 2px solid #1f1f47; }
.transparent { background-color: rgb(31 31 71 / 50%); }
.gradient { background: linear-gradient(to right, #1f1f47, #331f47); }
Similar colors
#211d49Azulado#1c1e4dFly-by-Night#222244Black Market#2a2551Pāua#231c4dSilent Orbit#222255Spacescape#2a2243Midnight Velvet#161d3bNightwalker
Closest common color name: Oxford Blue.
Questions
- What color is #1F1F47?
- #1F1F47 is a dark, desaturated blue, closest to the named color Azulado. It belongs to the blue family of colors.
- What is the RGB value of #1F1F47?
- The RGB value is 31, 31, 71: 31 red, 31 green and 71 blue on a 0 to 255 scale.
- What is the complementary color of #1F1F47?
- The complementary color is #47471F, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #1F1F47?
- White text. Black text has a contrast ratio of 1.35:1 and white text 15.61:1. WCAG asks for at least 4.5:1 for normal text.