#1F254D color
The hex color #1F254D is a dark, desaturated blue.
In the RGB color model it is made of 12.2% red, 14.5% green and 30.2% blue (31, 37, 77).
Its hue angle is 232°, with 43% saturation and 21% lightness. For print, the CMYK equivalent is 60% cyan, 52% magenta, 0% yellow and 70% black.
The closest named color is Space Cadet (#1D2951), a difference of 2 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 14.68:1).
#1F254D color codes
| HEX | #1F254D | |
|---|---|---|
| RGB | rgb(31, 37, 77) | |
| RGB percent | rgb(12.2%, 14.5%, 30.2%) | |
| HSL | hsl(232, 43%, 21%) | |
| HSV / HSB | hsv(232, 60%, 30%) | |
| CMYK | cmyk(60%, 52%, 0%, 70%) | |
| CIE LAB | lab(16.26, 10.96, -25.63) | |
| CIE LCH | lch(16.26, 27.88, 293.14) | |
| CIE XYZ | xyz(2.566, 2.15, 7.3) | |
| Decimal | 2041165 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #1F254D, 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 #1F254D | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.43:1 | Fail | Fail | Fail |
| Sample text | 14.68:1 | Pass | Pass | Pass |
| #1F254D as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.68:1 | Pass | Pass | Pass |
| Sample text | 1.43: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 #1F254D looks to people with the most common types of color vision deficiency.
#132a4eProtanopia
no red cones#0d264cDeuteranopia
no green cones#082e35Tritanopia
no blue cones#282828Achromatopsia
no color vision
CSS examples
.background { background-color: #1f254d; }
.text { color: #1f254d; }
.border { border: 2px solid #1f254d; }
.transparent { background-color: rgb(31 37 77 / 50%); }
.gradient { background: linear-gradient(to right, #1f254d, #301f4d); }
Similar colors
#1d2951Space Cadet#222244Black Market#1c1e4dFly-by-Night#2c2c57Deep Sea Base#222255Spacescape#2a2551Pāua#211d49Azulado#112255Dark Soul
Closest common color name: Oxford Blue.
Questions
- What color is #1F254D?
- #1F254D 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 #1F254D?
- The RGB value is 31, 37, 77: 31 red, 37 green and 77 blue on a 0 to 255 scale.
- What is the complementary color of #1F254D?
- The complementary color is #4D471F, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #1F254D?
- White text. Black text has a contrast ratio of 1.43:1 and white text 14.68:1. WCAG asks for at least 4.5:1 for normal text.