#172843 color
The hex color #172843 is a very dark, desaturated azure.
In the RGB color model it is made of 9% red, 15.7% green and 26.3% blue (23, 40, 67).
Its hue angle is 217°, with 49% saturation and 18% lightness. For print, the CMYK equivalent is 66% cyan, 40% magenta, 0% yellow and 74% black.
The closest named color is Eternal Darkness (#1C2841), a difference of 1.5 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 14.78:1).
#172843 color codes
| HEX | #172843 | |
|---|---|---|
| RGB | rgb(23, 40, 67) | |
| RGB percent | rgb(9%, 15.7%, 26.3%) | |
| HSL | hsl(217, 49%, 18%) | |
| HSV / HSB | hsv(217, 66%, 26%) | |
| CMYK | cmyk(66%, 40%, 0%, 74%) | |
| CIE LAB | lab(16.03, 2.8, -19.17) | |
| CIE LCH | lch(16.03, 19.38, 278.32) | |
| CIE XYZ | xyz(2.125, 2.105, 5.603) | |
| Decimal | 1517635 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #172843, 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 #172843 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.42:1 | Fail | Fail | Fail |
| Sample text | 14.78:1 | Pass | Pass | Pass |
| #172843 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.78:1 | Pass | Pass | Pass |
| Sample text | 1.42: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 #172843 looks to people with the most common types of color vision deficiency.
#1d2a44Protanopia
no red cones#172642Deuteranopia
no green cones#002e32Tritanopia
no blue cones#282828Achromatopsia
no color vision
CSS examples
.background { background-color: #172843; }
.text { color: #172843; }
.border { border: 2px solid #172843; }
.transparent { background-color: rgb(23 40 67 / 50%); }
.gradient { background: linear-gradient(to right, #172843, #1c1743); }
Similar colors
#1c2841Eternal Darkness#0f2d4dMidnight Ocean#112244Dark Eclipse#001f3fMidnight Mirage#0e1d32Trapped Darkness#002147Oxford Blue#011c39Naval Night#161e34Sombre Night
Questions
- What color is #172843?
- #172843 is a very dark, desaturated azure, closest to the named color Eternal Darkness. It belongs to the blue family of colors.
- What is the RGB value of #172843?
- The RGB value is 23, 40, 67: 23 red, 40 green and 67 blue on a 0 to 255 scale.
- What is the complementary color of #172843?
- The complementary color is #433217, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #172843?
- White text. Black text has a contrast ratio of 1.42:1 and white text 14.78:1. WCAG asks for at least 4.5:1 for normal text.