#172C71
Closest named color: Marine (#042E60). oklch(32.4% 0.122 266.5), rgb(23, 44, 113).
Aa
White text reads best on this color (12.84:1).
About this color
#172C71 is a dark, moderately saturated blue. In OKLCH its lightness is 32%, its chroma 0.122 and its hue 267°. Its hue sits on the cool side of the wheel. The nearest named color is Marine (#042E60), ΔE 0.035 away. White text reads best on it, at 12.84:1.
| Hue family | Blues |
| Lightness | dark (32%) |
| Chroma | moderately saturated (0.122) |
| Temperature | cool |
| Nearest name | Marine (#042E60) |
| Black text | 1.63:1 |
| White text | 12.84:1 |
Values
| HEX | #172C71 |
| RGB | rgb(23, 44, 113) |
| HSL | hsl(226, 66%, 27%) |
| OKLCH | oklch(32.4% 0.122 266.5) |
Contrast
WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #172C71 | 12.84:1 | AAA | Lc -101.9 | Preferred for body text |
| Black text on #172C71 | 1.63:1 | Fails | Lc 0.0 | Not readable |
| #172C71 text on white | 12.84:1 | AAA | Lc 98.5 | Preferred for body text |
| #172C71 text on black | 1.63:1 | Fails | Lc 0.0 | Not readable |
Tints and shades
A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 900.
-
Step 50
50
#F2F5FE
oklch(97% 0.012 271.3)
-
Step 100
100
#E2EAFC
oklch(93.6% 0.026 266.6)
-
Step 200
200
#CAD9FC
oklch(88.5% 0.051 267)
-
Step 300
300
#A5C0FD
oklch(81% 0.092 265.9)
-
Step 400
400
#769CFC
oklch(70.7% 0.147 266.4)
-
Step 500
500
#5580F9
oklch(63.2% 0.187 266.4)
-
Step 600
600
#3C65E8
oklch(55.5% 0.204 266.5)
-
Step 700
700
#2F53CA
oklch(49.1% 0.189 266.4)
-
Step 800
800
#2745A3
oklch(42.7% 0.156 266.3)
-
Step 900
900 (this color)
#172C71
oklch(32.4% 0.122 266.5)
-
Step 950
950
#15234C
oklch(27% 0.078 266.9)
#172C71 with color blindness
Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #003673 | 0.028 |
| Deuteranopia (no green cones) | #002E70 | 0.017 |
| Tritanopia (no blue cones) | #003D4A | 0.095 |
| Achromatopsia (no color) | #323232 | 0.122 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #172C71
#172C71
oklch(32.4% 0.122 266.5)
- #433100
#433100
oklch(32.5% 0.066 86.2)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #172C71, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Marine #042E60 ΔE 0.035
- Marine Blue #01386A ΔE 0.038
- Midnight Blue #191970 ΔE 0.044
- Prussian Blue #1D3557 ΔE 0.056
- Twilight Blue #0A437A ΔE 0.065
- Royal #0C1793 ΔE 0.070
- Dark Royal Blue #02066F ΔE 0.083
- Navy #000080 ΔE 0.084
Use #172C71 in your product
Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.