#172A50 color
The hex color #172A50 is a dark, moderate blue.
In the RGB color model it is made of 9% red, 16.5% green and 31.4% blue (23, 42, 80).
Its hue angle is 220°, with 55% saturation and 20% lightness. For print, the CMYK equivalent is 71% cyan, 48% magenta, 0% yellow and 69% black.
The closest named color is Space Cadet (#1D2951), a difference of 1.8 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 14.16:1).
#172A50 color codes
| HEX | #172A50 | |
|---|---|---|
| RGB | rgb(23, 42, 80) | |
| RGB percent | rgb(9%, 16.5%, 31.4%) | |
| HSL | hsl(220, 55%, 20%) | |
| HSV / HSB | hsv(220, 71%, 31%) | |
| CMYK | cmyk(71%, 48%, 0%, 69%) | |
| CIE LAB | lab(17.54, 6.64, -25.65) | |
| CIE LCH | lch(17.54, 26.49, 284.52) | |
| CIE XYZ | xyz(2.629, 2.417, 7.916) | |
| Decimal | 1518160 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #172A50, 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 #172A50 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.48:1 | Fail | Fail | Fail |
| Sample text | 14.16:1 | Pass | Pass | Pass |
| #172A50 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.16:1 | Pass | Pass | Pass |
| Sample text | 1.48: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 #172A50 looks to people with the most common types of color vision deficiency.
#182e51Protanopia
no red cones#0f294fDeuteranopia
no green cones#003339Tritanopia
no blue cones#2b2b2bAchromatopsia
no color vision
CSS examples
.background { background-color: #172a50; }
.text { color: #172a50; }
.border { border: 2px solid #172a50; }
.transparent { background-color: rgb(23 42 80 / 50%); }
.gradient { background: linear-gradient(to right, #172a50, #211750); }
Similar colors
#1d2951Space Cadet#112244Dark Eclipse#002147Oxford Blue#012253Subnautical#1c2e63Mythical Night#0f2d4dMidnight Ocean#112255Dark Soul#112358Fibonacci Blue
Questions
- What color is #172A50?
- #172A50 is a dark, moderate blue, closest to the named color Space Cadet. It belongs to the blue family of colors.
- What is the RGB value of #172A50?
- The RGB value is 23, 42, 80: 23 red, 42 green and 80 blue on a 0 to 255 scale.
- What is the complementary color of #172A50?
- The complementary color is #503D17, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #172A50?
- White text. Black text has a contrast ratio of 1.48:1 and white text 14.16:1. WCAG asks for at least 4.5:1 for normal text.