#1F3F71 color
The hex color #1F3F71 is a dark, moderate azure.
In the RGB color model it is made of 12.2% red, 24.7% green and 44.3% blue (31, 63, 113).
Its hue angle is 217°, with 57% saturation and 28% lightness. For print, the CMYK equivalent is 73% cyan, 44% magenta, 0% yellow and 56% black.
The closest named color is Aegean Blue (#1B416F), a difference of 1.5 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 10.46:1).
#1F3F71 color codes
| HEX | #1F3F71 | |
|---|---|---|
| RGB | rgb(31, 63, 113) | |
| RGB percent | rgb(12.2%, 24.7%, 44.3%) | |
| HSL | hsl(217, 57%, 28%) | |
| HSV / HSB | hsv(217, 73%, 44%) | |
| CMYK | cmyk(73%, 44%, 0%, 56%) | |
| CIE LAB | lab(26.84, 6.62, -32.35) | |
| CIE LCH | lch(26.84, 33.02, 281.56) | |
| CIE XYZ | xyz(5.322, 5.038, 16.312) | |
| Decimal | 2047857 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #1F3F71, 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 #1F3F71 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.01:1 | Fail | Fail | Fail |
| Sample text | 10.46:1 | Pass | Pass | Pass |
| #1F3F71 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.46:1 | Pass | Pass | Pass |
| Sample text | 2.01: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 #1F3F71 looks to people with the most common types of color vision deficiency.
#274473Protanopia
no red cones#1a3c70Deuteranopia
no green cones#004b52Tritanopia
no blue cones#3f3f3fAchromatopsia
no color vision
CSS examples
.background { background-color: #1f3f71; }
.text { color: #1f3f71; }
.border { border: 2px solid #1f3f71; }
.transparent { background-color: rgb(31 63 113 / 50%); }
.gradient { background: linear-gradient(to right, #1f3f71, #281f71); }
Similar colors
#1b416fAegean Blue#27426bNightlife#2c4170Napoleonic Blue#2d4470Blue Funk#1e4581Maritime Outpost#003b6fTardis Blue#254770Pretty Twilight Night#03386aLost in Space
Closest common color name: Prussian Blue.
Questions
- What color is #1F3F71?
- #1F3F71 is a dark, moderate azure, closest to the named color Aegean Blue. It belongs to the blue family of colors.
- What is the RGB value of #1F3F71?
- The RGB value is 31, 63, 113: 31 red, 63 green and 113 blue on a 0 to 255 scale.
- What is the complementary color of #1F3F71?
- The complementary color is #71511F, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #1F3F71?
- White text. Black text has a contrast ratio of 2.01:1 and white text 10.46:1. WCAG asks for at least 4.5:1 for normal text.