#172554 color
The swatch above shows #172554 with its hex code written on it in white and in black, so you can see which of the two is legible before reading the measured ratios below.
#172554 is a dark, moderately saturated blue, closest to the CSS named color midnightblue (#191970).
It is also a Tailwind CSS default: blue-950. That means you can write bg-blue-950 or text-blue-950 directly, with no arbitrary-value brackets and no entry in your theme config.
Color values
| HEX | #172554 |
| RGB | rgb(23, 37, 84) |
| HSL | hsl(226, 57%, 21%) |
| CMYK | cmyk(73%, 56%, 0%, 67%) |
| Decimal | 1516884 |
| CSS | color: #172554; |
| Android | 0xFF172554 |
| Swift | UIColor(red: 0.090, green: 0.145, blue: 0.329, alpha: 1) |
Accessibility and contrast
| White text on #172554 | 14.69:1 — AA pass · AA large pass · AAA pass |
| Black text on #172554 | 1.43:1 — AA fail · AA large fail · AAA fail |
| Recommended text color | white |
WCAG 2.1 asks for at least 4.5:1 for body text and 3:1 for large text (18 pt, or 14 pt bold).
Tints and shades of #172554
Each swatch keeps the hue and saturation of #172554 and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #172554
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #172554 in code
/* CSS */
.element { color: #172554; background-color: #172554; }
.element { color: rgb(23 37 84); }
.element { color: hsl(226 57% 21%); }
/* Tailwind */
<div class="bg-blue-950 text-white">
/* SCSS variable */
$brand: #172554;
Frequently asked questions
What color is #172554?
#172554 is a dark, moderately saturated blue. Its hue sits at 226° on the color wheel, with 57% saturation and 21% lightness.
What is #172554 in RGB?
#172554 converts to rgb(23, 37, 84) — 23 red, 37 green and 84 blue.
What is #172554 in CMYK?
Approximately cmyk(73%, 56%, 0%, 67%). Print output depends on the ICC profile of the press and paper, so treat this as a starting point rather than an exact match.
Should text on #172554 be white or black?
White gives the better contrast ratio (14.69:1 versus 1.43:1).
What is the complementary color of #172554?
#544617 — the hue directly opposite #172554 on the color wheel.