#5172AF#5172AF
#5172AF is a mid, moderate blue. Relative luminance 0.169; OKLCH L 55.5% C 0.103 H 262.0°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).
Color values
| HEX | #5172AF |
|---|---|
| RGB | rgb(81, 114, 175) |
| HSL | hsl(219, 37%, 50%) |
| HSV | hsv(219, 54%, 69%) |
| CMYK | cmyk(53.7%, 34.9%, 0%, 31.4%) |
| CIE-LAB | lab(48.11, 6.20, -36.10) |
| CIE-LCH | lch(48.11, 36.63, 279.74°) |
| OKLab | oklab(55.45% -0.0144 -0.1018) |
| OKLCH | oklch(55.45% 0.103 262) |
| XYZ | xyz(17.1459, 16.8778, 42.9034) |
| Luminance | 0.1688 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
French Blue
#436BAD
ΔE00 3.03
Flat Blue
#3C73A8
ΔE00 4.80
Dull Blue
#49759C
ΔE00 4.94
Medium Blue
#2C6FBB
ΔE00 5.02
Cornflower Blue
#5170D7
ΔE00 5.08
Cadet Blue
#4E7496
ΔE00 5.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5172AF #AF8E51
analogous
#51A1AF #5172AF #5F51AF
triadic
#5172AF #AF5172 #72AF51
tetradic
#5172AF #AF51A1 #AF8E51 #51AF5F
square
#5172AF #AF51A1 #AF8E51 #51AF5F
split-complementary
#5172AF #AF5F51 #A1AF51
monochromatic
#2A3B5C #3D5785 #5172AF #7B94C2 #A5B6D6
Accessibility & contrast
On white
4.80
#5172AF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.38
#5172AF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5172AF
4.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5172AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5172AF | 1.00 | 4.80 | 4.38 | 4.80 |
| #FFFFFF | 4.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5A77B2
Deuteranopia (green-blind)
#4F6EAE
Tritanopia (blue-blind)
#1F7F88
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #5172af; /* rgb */ color: rgb(81, 114, 175); /* oklch */ color: oklch(55.5% 0.103 262.0);
Tailwind
colors: {
custom: {
50: '#889ac7',
500: '#5172af',
950: '#000000',
},
}SCSS
$custom: #5172af; $custom-light: #889ac7; $custom-dark: #000000;
JSON
{
"hex": "#5172af",
"rgb": {
"r": 81,
"g": 114,
"b": 175
},
"hsl": {
"h": 218.936,
"s": 37.008,
"l": 50.196
},
"oklch": {
"l": 0.55452,
"c": 0.10286,
"h": 262
},
"luminance": 0.16879
}Semantic roles & 50–950 ramp
primary
#5172AF
secondary
#C3B499
accent
#A55BCD
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0C0E13
muted
#7D7E82