#001F40 color
The hex color #001F40 is a very dark, vivid azure.
In the RGB color model it is made of 0% red, 12.2% green and 25.1% blue (0, 31, 64).
Its hue angle is 211°, with 100% saturation and 13% lightness. For print, the CMYK equivalent is 100% cyan, 52% magenta, 0% yellow and 75% black.
The closest named color is Midnight Mirage (#001F3F), a difference of 0.3 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 16.54:1).
#001F40 color codes
| HEX | #001F40 | |
|---|---|---|
| RGB | rgb(0, 31, 64) | |
| RGB percent | rgb(0%, 12.2%, 25.1%) | |
| HSL | hsl(211, 100%, 13%) | |
| HSV / HSB | hsv(211, 100%, 25%) | |
| CMYK | cmyk(100%, 52%, 0%, 75%) | |
| CIE LAB | lab(11.62, 3.95, -24.17) | |
| CIE LCH | lch(11.62, 24.49, 279.28) | |
| CIE XYZ | xyz(1.415, 1.35, 5.035) | |
| Decimal | 8000 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #001F40, 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 #001F40 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.27:1 | Fail | Fail | Fail |
| Sample text | 16.54:1 | Pass | Pass | Pass |
| #001F40 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 16.54:1 | Pass | Pass | Pass |
| Sample text | 1.27: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 #001F40 looks to people with the most common types of color vision deficiency.
#0d2241Protanopia
no red cones#001c3fDeuteranopia
no green cones#00272cTritanopia
no blue cones#1f1f1fAchromatopsia
no color vision
CSS examples
.background { background-color: #001f40; }
.text { color: #001f40; }
.border { border: 2px solid #001f40; }
.transparent { background-color: rgb(0 31 64 / 50%); }
.gradient { background: linear-gradient(to right, #001f40, #010040); }
Similar colors
#001f3fMidnight Mirage#002147Oxford Blue#011c39Naval Night#112244Dark Eclipse#012253Subnautical#0e1d32Trapped Darkness#0f2d4dMidnight Ocean#041330Squid’s Ink
Questions
- What color is #001F40?
- #001F40 is a very dark, vivid azure, closest to the named color Midnight Mirage. It belongs to the black family of colors.
- What is the RGB value of #001F40?
- The RGB value is 0, 31, 64: 0 red, 31 green and 64 blue on a 0 to 255 scale.
- What is the complementary color of #001F40?
- The complementary color is #402100, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #001F40?
- White text. Black text has a contrast ratio of 1.27:1 and white text 16.54:1. WCAG asks for at least 4.5:1 for normal text.