#172C50 color
The hex color #172C50 is a dark, moderate azure.
In the RGB color model it is made of 9% red, 17.3% green and 31.4% blue (23, 44, 80).
Its hue angle is 218°, with 55% saturation and 20% lightness. For print, the CMYK equivalent is 71% cyan, 45% magenta, 0% yellow and 69% black.
The closest named color is Midnight Ocean (#0F2D4D), a difference of 2.7 ΔE, a small difference.
White text is the more readable choice on this background (contrast 13.88:1).
#172C50 color codes
| HEX | #172C50 | |
|---|---|---|
| RGB | rgb(23, 44, 80) | |
| RGB percent | rgb(9%, 17.3%, 31.4%) | |
| HSL | hsl(218, 55%, 20%) | |
| HSV / HSB | hsv(218, 71%, 31%) | |
| CMYK | cmyk(71%, 45%, 0%, 69%) | |
| CIE LAB | lab(18.2, 5.18, -24.59) | |
| CIE LCH | lch(18.2, 25.13, 281.9) | |
| CIE XYZ | xyz(2.701, 2.562, 7.94) | |
| Decimal | 1518672 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #172C50, 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 #172C50 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.51:1 | Fail | Fail | Fail |
| Sample text | 13.88:1 | Pass | Pass | Pass |
| #172C50 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.88: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 #172C50 looks to people with the most common types of color vision deficiency.
#1c2f51Protanopia
no red cones#132a4fDeuteranopia
no green cones#00343aTritanopia
no blue cones#2c2c2cAchromatopsia
no color vision
CSS examples
.background { background-color: #172c50; }
.text { color: #172c50; }
.border { border: 2px solid #172c50; }
.transparent { background-color: rgb(23 44 80 / 50%); }
.gradient { background: linear-gradient(to right, #172c50, #1e1750); }
Similar colors
#0f2d4dMidnight Ocean#1d2951Space Cadet#112244Dark Eclipse#042e60Marine#002147Oxford Blue#1c2e63Mythical Night#1c2841Eternal Darkness#012253Subnautical
Questions
- What color is #172C50?
- #172C50 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 #172C50?
- The RGB value is 23, 44, 80: 23 red, 44 green and 80 blue on a 0 to 255 scale.
- What is the complementary color of #172C50?
- The complementary color is #503B17, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #172C50?
- White text. Black text has a contrast ratio of 1.51:1 and white text 13.88:1. WCAG asks for at least 4.5:1 for normal text.