#171A2A color
The hex color #171A2A is a very dark, desaturated blue.
In the RGB color model it is made of 9% red, 10.2% green and 16.5% blue (23, 26, 42).
Its hue angle is 231°, with 29% saturation and 13% lightness. For print, the CMYK equivalent is 45% cyan, 38% magenta, 0% yellow and 84% black.
The closest named color is Eclipse Elixir (#1F2133), a difference of 2.5 ΔE, a small difference.
White text is the more readable choice on this background (contrast 17.25:1).
#171A2A color codes
| HEX | #171A2A | |
|---|---|---|
| RGB | rgb(23, 26, 42) | |
| RGB percent | rgb(9%, 10.2%, 16.5%) | |
| HSL | hsl(231, 29%, 13%) | |
| HSV / HSB | hsv(231, 45%, 16%) | |
| CMYK | cmyk(45%, 38%, 0%, 84%) | |
| CIE LAB | lab(9.7, 3.68, -11.29) | |
| CIE LCH | lch(9.7, 11.87, 288.04) | |
| CIE XYZ | xyz(1.141, 1.088, 2.34) | |
| Decimal | 1514026 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #171A2A, 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 #171A2A | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.22:1 | Fail | Fail | Fail |
| Sample text | 17.25:1 | Pass | Pass | Pass |
| #171A2A as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 17.25:1 | Pass | Pass | Pass |
| Sample text | 1.22: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 #171A2A looks to people with the most common types of color vision deficiency.
#151c2bProtanopia
no red cones#141a2aDeuteranopia
no green cones#121d20Tritanopia
no blue cones#1b1b1bAchromatopsia
no color vision
CSS examples
.background { background-color: #171a2a; }
.text { color: #171a2a; }
.border { border: 2px solid #171a2a; }
.transparent { background-color: rgb(23 26 42 / 50%); }
.gradient { background: linear-gradient(to right, #171a2a, #1d172a); }
Similar colors
#1f2133Eclipse Elixir#111122Corbeau#161e34Sombre Night#222233Black Velvet#1e2433Moonless Mystery#151931Dark Knight#21263aMidnight Express#0e1d32Trapped Darkness
Closest common color name: Midnight Black.
Questions
- What color is #171A2A?
- #171A2A is a very dark, desaturated blue, closest to the named color Eclipse Elixir. It belongs to the black family of colors.
- What is the RGB value of #171A2A?
- The RGB value is 23, 26, 42: 23 red, 26 green and 42 blue on a 0 to 255 scale.
- What is the complementary color of #171A2A?
- The complementary color is #2A2717, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #171A2A?
- White text. Black text has a contrast ratio of 1.22:1 and white text 17.25:1. WCAG asks for at least 4.5:1 for normal text.