#5170AF#5170AF
#5170AF is a mid, moderate blue. Relative luminance 0.164; OKLCH L 55.0% C 0.105 H 263.4°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).
Color values
| HEX | #5170AF |
|---|---|
| RGB | rgb(81, 112, 175) |
| HSL | hsl(220, 37%, 50%) |
| HSV | hsv(220, 54%, 69%) |
| CMYK | cmyk(53.7%, 36%, 0%, 31.4%) |
| CIE-LAB | lab(47.54, 7.42, -37.00) |
| CIE-LCH | lch(47.54, 37.73, 281.35°) |
| OKLab | oklab(55.01% -0.012 -0.1045) |
| OKLCH | oklch(55.01% 0.105 263.4) |
| XYZ | xyz(16.9228, 16.4316, 42.8290) |
| Luminance | 0.1643 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
French Blue
#436BAD
ΔE00 2.72
Cornflower Blue
#5170D7
ΔE00 5.10
Flat Blue
#3C73A8
ΔE00 5.25
Medium Blue
#2C6FBB
ΔE00 5.30
Dull Blue
#49759C
ΔE00 5.37
Cadet Blue
#4E7496
ΔE00 5.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5170AF #AF9051
analogous
#519FAF #5170AF #6151AF
triadic
#5170AF #AF5170 #70AF51
tetradic
#5170AF #AF519F #AF9051 #51AF61
square
#5170AF #AF519F #AF9051 #51AF61
split-complementary
#5170AF #AF6151 #9FAF51
monochromatic
#2A3A5C #3D5585 #5170AF #7B92C2 #A5B5D6
Accessibility & contrast
On white
4.90
#5170AF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.29
#5170AF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5170AF
4.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5170AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5170AF | 1.00 | 4.90 | 4.29 | 4.90 |
| #FFFFFF | 4.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5775B2
Deuteranopia (green-blind)
#4C6DAE
Tritanopia (blue-blind)
#207E87
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #5170af; /* rgb */ color: rgb(81, 112, 175); /* oklch */ color: oklch(55.0% 0.105 263.4);
Tailwind
colors: {
custom: {
50: '#8898c7',
500: '#5170af',
950: '#000000',
},
}SCSS
$custom: #5170af; $custom-light: #8898c7; $custom-dark: #000000;
JSON
{
"hex": "#5170af",
"rgb": {
"r": 81,
"g": 112,
"b": 175
},
"hsl": {
"h": 220.213,
"s": 37.008,
"l": 50.196
},
"oklch": {
"l": 0.55009,
"c": 0.10517,
"h": 263.4
},
"luminance": 0.16433
}Semantic roles & 50–950 ramp
primary
#5170AF
secondary
#C3B599
accent
#A75BCD
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0C0D13
muted
#7D7E82