#1F1F55 color
The hex color #1F1F55 is a dark, desaturated blue.
In the RGB color model it is made of 12.2% red, 12.2% green and 33.3% blue (31, 31, 85).
Its hue angle is 240°, with 47% saturation and 23% lightness. For print, the CMYK equivalent is 64% cyan, 64% magenta, 0% yellow and 67% black.
The closest named color is Spacescape (#222255), a difference of 1.1 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 15.16:1).
#1F1F55 color codes
| HEX | #1F1F55 | |
|---|---|---|
| RGB | rgb(31, 31, 85) | |
| RGB percent | rgb(12.2%, 12.2%, 33.3%) | |
| HSL | hsl(240, 47%, 23%) | |
| HSV / HSB | hsv(240, 64%, 33%) | |
| CMYK | cmyk(64%, 64%, 0%, 67%) | |
| CIE LAB | lab(15.1, 18.4, -32.93) | |
| CIE LCH | lch(15.1, 37.72, 299.2) | |
| CIE XYZ | xyz(2.694, 1.927, 8.823) | |
| Decimal | 2039637 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #1F1F55, 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 #1F1F55 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.39:1 | Fail | Fail | Fail |
| Sample text | 15.16:1 | Pass | Pass | Pass |
| #1F1F55 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.16:1 | Pass | Pass | Pass |
| Sample text | 1.39: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 #1F1F55 looks to people with the most common types of color vision deficiency.
#002857Protanopia
no red cones#002454Deuteranopia
no green cones#002c36Tritanopia
no blue cones#262626Achromatopsia
no color vision
CSS examples
.background { background-color: #1f1f55; }
.text { color: #1f1f55; }
.border { border: 2px solid #1f1f55; }
.transparent { background-color: rgb(31 31 85 / 50%); }
.gradient { background: linear-gradient(to right, #1f1f55, #3a1f55); }
Similar colors
#222255Spacescape#1c1e4dFly-by-Night#231c4dSilent Orbit#211d49Azulado#112255Dark Soul#222266Intergalactic Cowboy#112358Fibonacci Blue#2a2551Pāua
Closest common color name: Midnight Blue.
Questions
- What color is #1F1F55?
- #1F1F55 is a dark, desaturated blue, closest to the named color Spacescape. It belongs to the blue family of colors.
- What is the RGB value of #1F1F55?
- The RGB value is 31, 31, 85: 31 red, 31 green and 85 blue on a 0 to 255 scale.
- What is the complementary color of #1F1F55?
- The complementary color is #55551F, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #1F1F55?
- White text. Black text has a contrast ratio of 1.39:1 and white text 15.16:1. WCAG asks for at least 4.5:1 for normal text.