#172F76
Closest named color: Marine Blue (#01386A). oklch(33.5% 0.125 265.7), rgb(23, 47, 118).
Aa
White text reads best on this color (12.31:1).
About this color
#172F76 is a dark, moderately saturated blue. In OKLCH its lightness is 33%, its chroma 0.125 and its hue 266°. Its hue sits on the cool side of the wheel. The nearest named color is Marine Blue (#01386A), ΔE 0.036 away. White text reads best on it, at 12.31:1.
| Hue family | Blues |
| Lightness | dark (33%) |
| Chroma | moderately saturated (0.125) |
| Temperature | cool |
| Nearest name | Marine Blue (#01386A) |
| Black text | 1.70:1 |
| White text | 12.31:1 |
Values
| HEX | #172F76 |
| RGB | rgb(23, 47, 118) |
| HSL | hsl(225, 67%, 28%) |
| OKLCH | oklch(33.5% 0.125 265.7) |
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 #172F76 | 12.31:1 | AAA | Lc -101.1 | Preferred for body text |
| Black text on #172F76 | 1.70:1 | Fails | Lc 0.0 | Not readable |
| #172F76 text on white | 12.31:1 | AAA | Lc 97.6 | Preferred for body text |
| #172F76 text on black | 1.70: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
#E1EAFD
oklch(93.6% 0.028 265.4)
-
Step 200
200
#C9D9FD
oklch(88.5% 0.053 266.4)
-
Step 300
300
#A4C0FE
oklch(81% 0.093 265.6)
-
Step 400
400
#739CFE
oklch(70.6% 0.151 265.6)
-
Step 500
500
#5180FC
oklch(63.2% 0.192 265.6)
-
Step 600
600
#3865EB
oklch(55.6% 0.208 265.7)
-
Step 700
700
#2B53CD
oklch(49.2% 0.194 265.6)
-
Step 800
800
#2445A5
oklch(42.8% 0.16 265.5)
-
Step 900
900 (this color)
#172F76
oklch(33.5% 0.125 265.7)
-
Step 950
950
#14234D
oklch(27% 0.08 266.3)
#172F76 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) | #003978 | 0.028 |
| Deuteranopia (no green cones) | #003075 | 0.016 |
| Tritanopia (no blue cones) | #00414D | 0.099 |
| Achromatopsia (no color) | #353535 | 0.126 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #172F76
#172F76
oklch(33.5% 0.125 265.7)
- #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 #172F76, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Marine Blue #01386A ΔE 0.036
- Marine #042E60 ΔE 0.042
- Midnight Blue #191970 ΔE 0.053
- Twilight Blue #0A437A ΔE 0.056
- Prussian Blue #1D3557 ΔE 0.060
- Royal #0C1793 ΔE 0.068
- Cobalt #1E488F ΔE 0.080
- Dark Blue Grey #1F3B4D ΔE 0.087
Use #172F76 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.