#1A172E color
The hex color #1A172E is a very dark, desaturated blue.
In the RGB color model it is made of 10.2% red, 9% green and 18% blue (26, 23, 46).
Its hue angle is 248°, with 33% saturation and 14% lightness. For print, the CMYK equivalent is 43% cyan, 50% magenta, 0% yellow and 82% black.
The closest named color is Dark Knight (#151931), a difference of 2.9 ΔE, a small difference.
White text is the more readable choice on this background (contrast 17.41:1).
#1A172E color codes
| HEX | #1A172E | |
|---|---|---|
| RGB | rgb(26, 23, 46) | |
| RGB percent | rgb(10.2%, 9%, 18%) | |
| HSL | hsl(248, 33%, 14%) | |
| HSV / HSB | hsv(248, 50%, 18%) | |
| CMYK | cmyk(43%, 50%, 0%, 82%) | |
| CIE LAB | lab(9.24, 8.47, -14.94) | |
| CIE LCH | lch(9.24, 17.18, 299.54) | |
| CIE XYZ | xyz(1.225, 1.03, 2.718) | |
| Decimal | 1709870 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #1A172E, 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 #1A172E | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.21:1 | Fail | Fail | Fail |
| Sample text | 17.41:1 | Pass | Pass | Pass |
| #1A172E as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 17.41:1 | Pass | Pass | Pass |
| Sample text | 1.21: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 #1A172E looks to people with the most common types of color vision deficiency.
#101a2fProtanopia
no red cones#0f192dDeuteranopia
no green cones#151b20Tritanopia
no blue cones#1a1a1aAchromatopsia
no color vision
CSS examples
.background { background-color: #1a172e; }
.text { color: #1a172e; }
.border { border: 2px solid #1a172e; }
.transparent { background-color: rgb(26 23 46 / 50%); }
.gradient { background: linear-gradient(to right, #1a172e, #26172e); }
Similar colors
#151931Dark Knight#111122Corbeau#161d3bNightwalker#1f2133Eclipse Elixir#222233Black Velvet#060929Mysterious Depths#222244Black Market#161e34Sombre Night
Closest common color name: Dark Purple.
Questions
- What color is #1A172E?
- #1A172E is a very dark, desaturated blue, closest to the named color Dark Knight. It belongs to the black family of colors.
- What is the RGB value of #1A172E?
- The RGB value is 26, 23, 46: 26 red, 23 green and 46 blue on a 0 to 255 scale.
- What is the complementary color of #1A172E?
- The complementary color is #2B2E17, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #1A172E?
- White text. Black text has a contrast ratio of 1.21:1 and white text 17.41:1. WCAG asks for at least 4.5:1 for normal text.