#172F56 color
The hex color #172F56 is a dark, moderate azure.
In the RGB color model it is made of 9% red, 18.4% green and 33.7% blue (23, 47, 86).
Its hue angle is 217°, with 58% saturation and 21% lightness. For print, the CMYK equivalent is 73% cyan, 45% magenta, 0% yellow and 66% black.
The closest named color is Marine (#042E60), a difference of 2.6 ΔE, a small difference.
White text is the more readable choice on this background (contrast 13.31:1).
#172F56 color codes
| HEX | #172F56 | |
|---|---|---|
| RGB | rgb(23, 47, 86) | |
| RGB percent | rgb(9%, 18.4%, 33.7%) | |
| HSL | hsl(217, 58%, 21%) | |
| HSV / HSB | hsv(217, 73%, 34%) | |
| CMYK | cmyk(73%, 45%, 0%, 66%) | |
| CIE LAB | lab(19.58, 5.49, -26.41) | |
| CIE LCH | lch(19.58, 26.97, 281.74) | |
| CIE XYZ | xyz(3.049, 2.887, 9.199) | |
| Decimal | 1519446 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #172F56, 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 #172F56 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.58:1 | Fail | Fail | Fail |
| Sample text | 13.31:1 | Pass | Pass | Pass |
| #172F56 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.31:1 | Pass | Pass | Pass |
| Sample text | 1.58: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 #172F56 looks to people with the most common types of color vision deficiency.
#1d3358Protanopia
no red cones#132d55Deuteranopia
no green cones#00383eTritanopia
no blue cones#2f2f2fAchromatopsia
no color vision
CSS examples
.background { background-color: #172f56; }
.text { color: #172f56; }
.border { border: 2px solid #172f56; }
.transparent { background-color: rgb(23 47 86 / 50%); }
.gradient { background: linear-gradient(to right, #172f56, #1e1756); }
Similar colors
#042e60Marine#0f2d4dMidnight Ocean#1c2e63Mythical Night#1d2951Space Cadet#003368Neptune’s Dream#2b3458Midnight Escapade#012253Subnautical#002147Oxford Blue
Questions
- What color is #172F56?
- #172F56 is a dark, moderate azure, closest to the named color Marine. It belongs to the blue family of colors.
- What is the RGB value of #172F56?
- The RGB value is 23, 47, 86: 23 red, 47 green and 86 blue on a 0 to 255 scale.
- What is the complementary color of #172F56?
- The complementary color is #563E17, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #172F56?
- White text. Black text has a contrast ratio of 1.58:1 and white text 13.31:1. WCAG asks for at least 4.5:1 for normal text.