#5171CF
Closest named color: Royal Blue (#4169E1). oklch(57.1% 0.149 267.4), rgb(81, 113, 207).
Aa
Black text reads best on this color (4.61:1).
About this color
#5171CF is a medium-dark, vivid blue. In OKLCH its lightness is 57%, its chroma 0.149 and its hue 267°. Its hue sits on the cool side of the wheel. The nearest named color is Royal Blue (#4169E1), ΔE 0.041 away. Black text reads best on it, at 4.61:1.
| Hue family | Blues |
| Lightness | medium-dark (57%) |
| Chroma | vivid (0.149) |
| Temperature | cool |
| Nearest name | Royal Blue (#4169E1) |
| Black text | 4.61:1 |
| White text | 4.55:1 |
Values
| HEX | #5171CF |
| RGB | rgb(81, 113, 207) |
| HSL | hsl(225, 57%, 56%) |
| OKLCH | oklch(57.1% 0.149 267.4) |
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 #5171CF | 4.55:1 | AA | Lc -76.8 | Fine for body text |
| Black text on #5171CF | 4.61:1 | AA | Lc 32.7 | Non-text elements, placeholder text |
| #5171CF text on white | 4.55:1 | AA | Lc 71.4 | Content text, not long reading |
| #5171CF text on black | 4.61:1 | AA | Lc -30.3 | Non-text elements, placeholder text |
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
#F3F5FC
oklch(97.1% 0.01 273.4)
-
Step 100
100
#E4EAF7
oklch(93.6% 0.019 266)
-
Step 200
200
#CED9F3
oklch(88.5% 0.038 267.3)
-
Step 300
300
#ADC0ED
oklch(80.9% 0.067 267)
-
Step 400
400
#839EE4
oklch(70.7% 0.107 267.5)
-
Step 500
500
#6584DC
oklch(63% 0.137 267.7)
-
Step 600
600 (this color)
#5171CF
oklch(57.1% 0.149 267.4)
-
Step 700
700
#3E5AAF
oklch(49.2% 0.139 267.4)
-
Step 800
800
#334A8D
oklch(42.7% 0.114 267.2)
-
Step 900
900
#2D3E71
oklch(37.7% 0.09 268)
-
Step 950
950
#1A2542
oklch(27% 0.056 266.9)
#5171CF 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) | #447CD3 | 0.029 |
| Deuteranopia (no green cones) | #3071CD | 0.031 |
| Tritanopia (no blue cones) | #008696 | 0.128 |
| Achromatopsia (no color) | #767676 | 0.149 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #5171CF
#5171CF
oklch(57.1% 0.149 267.4)
- #957200
#957200
oklch(57.1% 0.117 87.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 #5171CF, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Royal Blue #4169E1 ΔE 0.041
- Windows Blue #3778BF ΔE 0.041
- Dark Periwinkle #665FD1 ΔE 0.050
- French Blue #436BAD ΔE 0.057
- Slate Blue #6A5ACD ΔE 0.062
- Iris #6258C4 ΔE 0.064
- Light Indigo #6D5ACF ΔE 0.064
- Mid Blue #276AB3 ΔE 0.064
Use #5171CF 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.