#5170A7
Closest named color: Flat Blue (#3C73A8). oklch(54.6% 0.094 261.3), rgb(81, 112, 167).
Aa
White text reads best on this color (4.96:1).
About this color
#5170A7 is a medium-dark, moderately saturated blue. In OKLCH its lightness is 55%, its chroma 0.094 and its hue 261°. Its hue sits on the cool side of the wheel. The nearest named color is Flat Blue (#3C73A8), ΔE 0.022 away. White text reads best on it, at 4.96:1.
| Hue family | Blues |
| Lightness | medium-dark (55%) |
| Chroma | moderately saturated (0.094) |
| Temperature | cool |
| Nearest name | Flat Blue (#3C73A8) |
| Black text | 4.22:1 |
| White text | 4.96:1 |
Values
| HEX | #5170A7 |
| RGB | rgb(81, 112, 167) |
| HSL | hsl(218, 35%, 49%) |
| OKLCH | oklch(54.6% 0.094 261.3) |
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 #5170A7 | 4.96:1 | AA | Lc -79.7 | Fine for body text |
| Black text on #5170A7 | 4.22:1 | AA large text | Lc 29.8 | Dividers and decoration only |
| #5170A7 text on white | 4.96:1 | AA | Lc 74.3 | Content text, not long reading |
| #5170A7 text on black | 4.22:1 | AA large text | Lc -27.4 | Dividers and decoration only |
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 600.
-
Step 50
50
#F3F5F9
oklch(97% 0.006 264.5)
-
Step 100
100
#E5EAF2
oklch(93.6% 0.012 259.8)
-
Step 200
200
#D1DAE9
oklch(88.6% 0.023 260.7)
-
Step 300
300
#B2C1DD
oklch(80.9% 0.043 263)
-
Step 400
400
#89A1CB
oklch(70.6% 0.068 261.5)
-
Step 500
500
#6C8ABE
oklch(63.1% 0.086 261.1)
-
Step 600
600 (this color)
#5170A7
oklch(54.6% 0.094 261.3)
-
Step 700
700
#446092
oklch(49% 0.087 261.4)
-
Step 800
800
#384F77
oklch(42.8% 0.073 261)
-
Step 900
900
#314260
oklch(37.9% 0.056 261.4)
-
Step 950
950
#1D2738
oklch(27.2% 0.035 260.8)
#5170A7 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) | #5B74A9 | 0.018 |
| Deuteranopia (no green cones) | #516CA6 | 0.011 |
| Tritanopia (no blue cones) | #297C84 | 0.084 |
| Achromatopsia (no color) | #707070 | 0.094 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #5170A7
#5170A7
oklch(54.6% 0.094 261.3)
- #8C6A27
#8C6A27
oklch(54.6% 0.094 81.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 #5170A7, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Flat Blue #3C73A8 ΔE 0.022
- French Blue #436BAD ΔE 0.026
- Dull Blue #49759C ΔE 0.027
- Muted Blue #3B719F ΔE 0.028
- Stormy Blue #507B9C ΔE 0.040
- Cerulean #457B9D ΔE 0.041
- Windows Blue #3778BF ΔE 0.043
- Metallic Blue #4F738E ΔE 0.044
Use #5170A7 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.