#5168D7#5168D7
#5168D7 is a mid, vivid blue. Relative luminance 0.166; OKLCH L 55.9% C 0.171 H 271.0°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #5168D7 |
|---|---|
| RGB | rgb(81, 104, 215) |
| HSL | hsl(230, 63%, 58%) |
| HSV | hsv(230, 62%, 84%) |
| CMYK | cmyk(62.3%, 51.6%, 0%, 15.7%) |
| CIE-LAB | lab(47.69, 25.82, -59.77) |
| CIE-LCH | lch(47.69, 65.11, 293.37°) |
| OKLab | oklab(55.88% 0.0031 -0.1714) |
| OKLCH | oklch(55.88% 0.171 271) |
| XYZ | xyz(20.6053, 16.5545, 66.3863) |
| Luminance | 0.1656 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal Blue
#4169E1
ΔE00 2.27
Cornflower Blue
#5170D7
ΔE00 2.88
Azul
#1D5DEC
ΔE00 5.12
Dark Periwinkle
#665FD1
ΔE00 5.25
Bright Blue
#0165FC
ΔE00 5.32
Warm Blue
#4B57DB
ΔE00 5.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5168D7 #D7C051
analogous
#51ABD7 #5168D7 #7D51D7
triadic
#5168D7 #D75168 #68D751
tetradic
#5168D7 #D751AB #D7C051 #51D77D
square
#5168D7 #D751AB #D7C051 #51D77D
split-complementary
#5168D7 #D77D51 #ABD751
monochromatic
#20338D #2C45BF #5168D7 #8393E2 #B5BEEE
Accessibility & contrast
On white
4.87
#5168D7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.31
#5168D7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5168D7
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5168D7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5168D7 | 1.00 | 4.87 | 4.31 | 4.87 |
| #FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2677DB
Deuteranopia (green-blind)
#006BD5
Tritanopia (blue-blind)
#008295
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #5168d7; /* rgb */ color: rgb(81, 104, 215); /* oklch */ color: oklch(55.9% 0.171 271.0);
Tailwind
colors: {
custom: {
50: '#8e92e4',
500: '#5168d7',
950: '#000000',
},
}SCSS
$custom: #5168d7; $custom-light: #8e92e4; $custom-dark: #000000;
JSON
{
"hex": "#5168d7",
"rgb": {
"r": 81,
"g": 104,
"b": 215
},
"hsl": {
"h": 229.701,
"s": 62.617,
"l": 58.039
},
"oklch": {
"l": 0.55883,
"c": 0.17142,
"h": 271
},
"luminance": 0.16556
}Semantic roles & 50–950 ramp
primary
#5168D7
secondary
#DDD3A7
accent
#CA42E6
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0D0D16
muted
#7E7D84