#172F74
Closest named color: Marine Blue (#01386A). oklch(33.3% 0.123 265.5), rgb(23, 47, 116).
Aa
White text reads best on this color (12.38:1).
About this color
#172F74 is a dark, moderately saturated blue. In OKLCH its lightness is 33%, its chroma 0.123 and its hue 266°. Its hue sits on the cool side of the wheel. The nearest named color is Marine Blue (#01386A), ΔE 0.034 away. White text reads best on it, at 12.38:1.
| Hue family | Blues |
| Lightness | dark (33%) |
| Chroma | moderately saturated (0.123) |
| Temperature | cool |
| Nearest name | Marine Blue (#01386A) |
| Black text | 1.69:1 |
| White text | 12.38:1 |
Values
| HEX | #172F74 |
| RGB | rgb(23, 47, 116) |
| HSL | hsl(225, 67%, 27%) |
| OKLCH | oklch(33.3% 0.123 265.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 #172F74 | 12.38:1 | AAA | Lc -101.2 | Preferred for body text |
| Black text on #172F74 | 1.69:1 | Fails | Lc 0.0 | Not readable |
| #172F74 text on white | 12.38:1 | AAA | Lc 97.7 | Preferred for body text |
| #172F74 text on black | 1.69: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
#F1F5FE
oklch(97% 0.013 266.7)
-
Step 100
100
#E1EAFC
oklch(93.6% 0.026 264.4)
-
Step 200
200
#C9D9FC
oklch(88.5% 0.051 265.9)
-
Step 300
300
#A4C0FD
oklch(80.9% 0.092 265.3)
-
Step 400
400
#749CFC
oklch(70.6% 0.148 265.7)
-
Step 500
500
#5280FA
oklch(63.1% 0.189 265.7)
-
Step 600
600
#3866E9
oklch(55.6% 0.205 265.4)
-
Step 700
700
#2C54CA
oklch(49.2% 0.189 265.5)
-
Step 800
800
#2445A3
oklch(42.6% 0.157 265.4)
-
Step 900
900 (this color)
#172F74
oklch(33.3% 0.123 265.5)
-
Step 950
950
#14244C
oklch(27.1% 0.077 265.2)
#172F74 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) | #003976 | 0.028 |
| Deuteranopia (no green cones) | #003073 | 0.016 |
| Tritanopia (no blue cones) | #00404C | 0.096 |
| Achromatopsia (no color) | #343434 | 0.123 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #172F74
#172F74
oklch(33.3% 0.123 265.5)
- #463300
#463300
oklch(33.4% 0.068 85.7)
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 #172F74, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Marine Blue #01386A ΔE 0.034
- Marine #042E60 ΔE 0.039
- Midnight Blue #191970 ΔE 0.052
- Twilight Blue #0A437A ΔE 0.056
- Prussian Blue #1D3557 ΔE 0.057
- Royal #0C1793 ΔE 0.071
- Cobalt #1E488F ΔE 0.082
- Dark Blue Grey #1F3B4D ΔE 0.084
Use #172F74 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.