#172C4F color
The hex color #172C4F is a dark, moderate azure.
In the RGB color model it is made of 9% red, 17.3% green and 31% blue (23, 44, 79).
Its hue angle is 218°, with 55% saturation and 20% lightness. For print, the CMYK equivalent is 71% cyan, 44% magenta, 0% yellow and 69% black.
The closest named color is Midnight Ocean (#0F2D4D), a difference of 2.5 ΔE, a small difference.
White text is the more readable choice on this background (contrast 13.91:1).
#172C4F color codes
| HEX | #172C4F | |
|---|---|---|
| RGB | rgb(23, 44, 79) | |
| RGB percent | rgb(9%, 17.3%, 31%) | |
| HSL | hsl(218, 55%, 20%) | |
| HSV / HSB | hsv(218, 71%, 31%) | |
| CMYK | cmyk(71%, 44%, 0%, 69%) | |
| CIE LAB | lab(18.13, 4.77, -24.02) | |
| CIE LCH | lch(18.13, 24.49, 281.23) | |
| CIE XYZ | xyz(2.665, 2.548, 7.747) | |
| Decimal | 1518671 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #172C4F, 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 #172C4F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.51:1 | Fail | Fail | Fail |
| Sample text | 13.91:1 | Pass | Pass | Pass |
| #172C4F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.91:1 | Pass | Pass | Pass |
| Sample text | 1.51: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 #172C4F looks to people with the most common types of color vision deficiency.
#1c2f50Protanopia
no red cones#142a4eDeuteranopia
no green cones#003439Tritanopia
no blue cones#2c2c2cAchromatopsia
no color vision
CSS examples
.background { background-color: #172c4f; }
.text { color: #172c4f; }
.border { border: 2px solid #172c4f; }
.transparent { background-color: rgb(23 44 79 / 50%); }
.gradient { background: linear-gradient(to right, #172c4f, #1e174f); }
Similar colors
#0f2d4dMidnight Ocean#1d2951Space Cadet#112244Dark Eclipse#1c2841Eternal Darkness#002147Oxford Blue#042e60Marine#1c2e63Mythical Night#012253Subnautical
Questions
- What color is #172C4F?
- #172C4F is a dark, moderate azure, closest to the named color Midnight Ocean. It belongs to the blue family of colors.
- What is the RGB value of #172C4F?
- The RGB value is 23, 44, 79: 23 red, 44 green and 79 blue on a 0 to 255 scale.
- What is the complementary color of #172C4F?
- The complementary color is #4F3A17, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #172C4F?
- White text. Black text has a contrast ratio of 1.51:1 and white text 13.91:1. WCAG asks for at least 4.5:1 for normal text.