#5172B0#5172B0
#5172B0 is a mid, moderate blue. Relative luminance 0.169; OKLCH L 55.5% C 0.104 H 262.2°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).
Color values
| HEX | #5172B0 |
|---|---|
| RGB | rgb(81, 114, 176) |
| HSL | hsl(219, 38%, 50%) |
| HSV | hsv(219, 54%, 69%) |
| CMYK | cmyk(54%, 35.2%, 0%, 31%) |
| CIE-LAB | lab(48.16, 6.52, -36.60) |
| CIE-LCH | lch(48.16, 37.18, 280.11°) |
| OKLab | oklab(55.51% -0.0141 -0.1033) |
| OKLCH | oklch(55.51% 0.104 262.2) |
| XYZ | xyz(17.2445, 16.9173, 43.4225) |
| Luminance | 0.1692 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
French Blue
#436BAD
ΔE00 3.05
Flat Blue
#3C73A8
ΔE00 4.86
Cornflower Blue
#5170D7
ΔE00 4.97
Dull Blue
#49759C
ΔE00 5.01
Medium Blue
#2C6FBB
ΔE00 5.03
Cadet Blue
#4E7496
ΔE00 5.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5172B0 #B08F51
analogous
#51A1B0 #5172B0 #6051B0
triadic
#5172B0 #B05172 #72B051
tetradic
#5172B0 #B051A1 #B08F51 #51B060
square
#5172B0 #B051A1 #B08F51 #51B060
split-complementary
#5172B0 #B06051 #A1B051
monochromatic
#2A3C5D #3D5787 #5172B0 #7B94C3 #A5B6D6
Accessibility & contrast
On white
4.79
#5172B0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.38
#5172B0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5172B0
4.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5172B0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5172B0 | 1.00 | 4.79 | 4.38 | 4.79 |
| #FFFFFF | 4.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5977B3
Deuteranopia (green-blind)
#4E6EAF
Tritanopia (blue-blind)
#1E8089
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #5172b0; /* rgb */ color: rgb(81, 114, 176); /* oklch */ color: oklch(55.5% 0.104 262.2);
Tailwind
colors: {
custom: {
50: '#889ac8',
500: '#5172b0',
950: '#000000',
},
}SCSS
$custom: #5172b0; $custom-light: #889ac8; $custom-dark: #000000;
JSON
{
"hex": "#5172b0",
"rgb": {
"r": 81,
"g": 114,
"b": 176
},
"hsl": {
"h": 219.158,
"s": 37.549,
"l": 50.392
},
"oklch": {
"l": 0.55507,
"c": 0.10428,
"h": 262.2
},
"luminance": 0.16919
}Semantic roles & 50–950 ramp
primary
#5172B0
secondary
#C4B599
accent
#A55ACE
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0C0E13
muted
#7D7E82