#1F273B color
The hex color #1F273B is a very dark, desaturated blue.
In the RGB color model it is made of 12.2% red, 15.3% green and 23.1% blue (31, 39, 59).
Its hue angle is 223°, with 31% saturation and 18% lightness. For print, the CMYK equivalent is 47% cyan, 34% magenta, 0% yellow and 77% black.
The closest named color is Midnight Express (#21263A), a difference of 1.4 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 14.88:1).
#1F273B color codes
| HEX | #1F273B | |
|---|---|---|
| RGB | rgb(31, 39, 59) | |
| RGB percent | rgb(12.2%, 15.3%, 23.1%) | |
| HSL | hsl(223, 31%, 18%) | |
| HSV / HSB | hsv(223, 47%, 23%) | |
| CMYK | cmyk(47%, 34%, 0%, 77%) | |
| CIE LAB | lab(15.79, 2.83, -13.95) | |
| CIE LCH | lch(15.79, 14.23, 281.46) | |
| CIE XYZ | xyz(2.08, 2.058, 4.424) | |
| Decimal | 2041659 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #1F273B, 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 #1F273B | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.41:1 | Fail | Fail | Fail |
| Sample text | 14.88:1 | Pass | Pass | Pass |
| #1F273B as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.88:1 | Pass | Pass | Pass |
| Sample text | 1.41: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 #1F273B looks to people with the most common types of color vision deficiency.
#20293cProtanopia
no red cones#1d263bDeuteranopia
no green cones#162b2eTritanopia
no blue cones#272727Achromatopsia
no color vision
CSS examples
.background { background-color: #1f273b; }
.text { color: #1f273b; }
.border { border: 2px solid #1f273b; }
.transparent { background-color: rgb(31 39 59 / 50%); }
.gradient { background: linear-gradient(to right, #1f273b, #251f3b); }
Similar colors
#21263aMidnight Express#1c2841Eternal Darkness#1e2433Moonless Mystery#161e34Sombre Night#1f2133Eclipse Elixir#222233Black Velvet#0e1d32Trapped Darkness#1b2431Dark
Closest common color name: Oxford Blue.
Questions
- What color is #1F273B?
- #1F273B is a very dark, desaturated blue, closest to the named color Midnight Express. It belongs to the blue family of colors.
- What is the RGB value of #1F273B?
- The RGB value is 31, 39, 59: 31 red, 39 green and 59 blue on a 0 to 255 scale.
- What is the complementary color of #1F273B?
- The complementary color is #3B331F, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #1F273B?
- White text. Black text has a contrast ratio of 1.41:1 and white text 14.88:1. WCAG asks for at least 4.5:1 for normal text.