#171D5E color
The hex color #171D5E is a dark, moderate blue.
In the RGB color model it is made of 9% red, 11.4% green and 36.9% blue (23, 29, 94).
Its hue angle is 235°, with 61% saturation and 23% lightness. For print, the CMYK equivalent is 76% cyan, 69% magenta, 0% yellow and 63% black.
The closest named color is Intergalactic Cowboy (#222266), a difference of 2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 15.29:1).
#171D5E color codes
| HEX | #171D5E | |
|---|---|---|
| RGB | rgb(23, 29, 94) | |
| RGB percent | rgb(9%, 11.4%, 36.9%) | |
| HSL | hsl(235, 61%, 23%) | |
| HSV / HSB | hsv(235, 76%, 37%) | |
| CMYK | cmyk(76%, 69%, 0%, 63%) | |
| CIE LAB | lab(14.78, 21.97, -39.51) | |
| CIE LCH | lch(14.78, 45.2, 299.07) | |
| CIE XYZ | xyz(2.812, 1.869, 10.8) | |
| Decimal | 1514846 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #171D5E, 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 #171D5E | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.37:1 | Fail | Fail | Fail |
| Sample text | 15.29:1 | Pass | Pass | Pass |
| #171D5E as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.29:1 | Pass | Pass | Pass |
| Sample text | 1.37: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 #171D5E looks to people with the most common types of color vision deficiency.
#002960Protanopia
no red cones#00225dDeuteranopia
no green cones#002e3aTritanopia
no blue cones#252525Achromatopsia
no color vision
CSS examples
.background { background-color: #171d5e; }
.text { color: #171d5e; }
.border { border: 2px solid #171d5e; }
.transparent { background-color: rgb(23 29 94 / 50%); }
.gradient { background: linear-gradient(to right, #171d5e, #35175e); }
Similar colors
#222266Intergalactic Cowboy#002266Midnight Melancholia#112358Fibonacci Blue#222255Spacescape#001155Interstellar Blue#002366Deep Sea Nightmare#112255Dark Soul#082567Dark Sapphire
Closest common color name: Midnight Blue.
Questions
- What color is #171D5E?
- #171D5E is a dark, moderate blue, closest to the named color Intergalactic Cowboy. It belongs to the blue family of colors.
- What is the RGB value of #171D5E?
- The RGB value is 23, 29, 94: 23 red, 29 green and 94 blue on a 0 to 255 scale.
- What is the complementary color of #171D5E?
- The complementary color is #5E5817, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #171D5E?
- White text. Black text has a contrast ratio of 1.37:1 and white text 15.29:1. WCAG asks for at least 4.5:1 for normal text.