#171942 color
The hex color #171942 is a very dark, desaturated blue.
In the RGB color model it is made of 9% red, 9.8% green and 25.9% blue (23, 25, 66).
Its hue angle is 237°, with 48% saturation and 17% lightness. For print, the CMYK equivalent is 65% cyan, 62% magenta, 0% yellow and 74% black.
The closest named color is Azulado (#211D49), a difference of 2.2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 16.74:1).
#171942 color codes
| HEX | #171942 | |
|---|---|---|
| RGB | rgb(23, 25, 66) | |
| RGB percent | rgb(9%, 9.8%, 25.9%) | |
| HSL | hsl(237, 48%, 17%) | |
| HSV / HSB | hsv(237, 65%, 26%) | |
| CMYK | cmyk(65%, 62%, 0%, 74%) | |
| CIE LAB | lab(11.07, 13.67, -26.4) | |
| CIE LCH | lch(11.07, 29.73, 297.38) | |
| CIE XYZ | xyz(1.684, 1.271, 5.31) | |
| Decimal | 1513794 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #171942, 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 #171942 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.25:1 | Fail | Fail | Fail |
| Sample text | 16.74:1 | Pass | Pass | Pass |
| #171942 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 16.74:1 | Pass | Pass | Pass |
| Sample text | 1.25: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 #171942 looks to people with the most common types of color vision deficiency.
#011f43Protanopia
no red cones#001c41Deuteranopia
no green cones#01232aTritanopia
no blue cones#1e1e1eAchromatopsia
no color vision
CSS examples
.background { background-color: #171942; }
.text { color: #171942; }
.border { border: 2px solid #171942; }
.transparent { background-color: rgb(23 25 66 / 50%); }
.gradient { background: linear-gradient(to right, #171942, #2a1742); }
Similar colors
#211d49Azulado#1c1e4dFly-by-Night#231c4dSilent Orbit#071037Infinite Night#111144Deadly Depths#222244Black Market#161d3bNightwalker#222255Spacescape
Closest common color name: Oxford Blue.
Questions
- What color is #171942?
- #171942 is a very dark, desaturated blue, closest to the named color Azulado. It belongs to the black family of colors.
- What is the RGB value of #171942?
- The RGB value is 23, 25, 66: 23 red, 25 green and 66 blue on a 0 to 255 scale.
- What is the complementary color of #171942?
- The complementary color is #424017, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #171942?
- White text. Black text has a contrast ratio of 1.25:1 and white text 16.74:1. WCAG asks for at least 4.5:1 for normal text.