#1F2951 color
The hex color #1F2951 is a dark, desaturated blue.
In the RGB color model it is made of 12.2% red, 16.1% green and 31.8% blue (31, 41, 81).
Its hue angle is 228°, with 45% saturation and 22% lightness. For print, the CMYK equivalent is 62% cyan, 49% magenta, 0% yellow and 68% black.
The closest named color is Space Cadet (#1D2951), a difference of 0.5 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 14.05:1).
#1F2951 color codes
| HEX | #1F2951 | |
|---|---|---|
| RGB | rgb(31, 41, 81) | |
| RGB percent | rgb(12.2%, 16.1%, 31.8%) | |
| HSL | hsl(228, 45%, 22%) | |
| HSV / HSB | hsv(228, 62%, 32%) | |
| CMYK | cmyk(62%, 49%, 0%, 68%) | |
| CIE LAB | lab(17.79, 9.57, -25.9) | |
| CIE LCH | lch(17.79, 27.61, 290.28) | |
| CIE XYZ | xyz(2.843, 2.471, 8.11) | |
| Decimal | 2042193 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #1F2951, 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 #1F2951 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.49:1 | Fail | Fail | Fail |
| Sample text | 14.05:1 | Pass | Pass | Pass |
| #1F2951 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.05:1 | Pass | Pass | Pass |
| Sample text | 1.49: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 #1F2951 looks to people with the most common types of color vision deficiency.
#172e53Protanopia
no red cones#102950Deuteranopia
no green cones#033239Tritanopia
no blue cones#2c2c2cAchromatopsia
no color vision
CSS examples
.background { background-color: #1f2951; }
.text { color: #1f2951; }
.border { border: 2px solid #1f2951; }
.transparent { background-color: rgb(31 41 81 / 50%); }
.gradient { background: linear-gradient(to right, #1f2951, #2e1f51); }
Similar colors
#1d2951Space Cadet#2c2c57Deep Sea Base#112244Dark Eclipse#112255Dark Soul#2e305eGalaxea#2b3458Midnight Escapade#112358Fibonacci Blue#1c2e63Mythical Night
Closest common color name: Oxford Blue.
Questions
- What color is #1F2951?
- #1F2951 is a dark, desaturated blue, closest to the named color Space Cadet. It belongs to the blue family of colors.
- What is the RGB value of #1F2951?
- The RGB value is 31, 41, 81: 31 red, 41 green and 81 blue on a 0 to 255 scale.
- What is the complementary color of #1F2951?
- The complementary color is #51471F, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #1F2951?
- White text. Black text has a contrast ratio of 1.49:1 and white text 14.05:1. WCAG asks for at least 4.5:1 for normal text.