#5167D7#5167D7
#5167D7 is a mid, vivid blue. Relative luminance 0.164; OKLCH L 55.7% C 0.173 H 271.4°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).
Color values
| HEX | #5167D7 |
|---|---|
| RGB | rgb(81, 103, 215) |
| HSL | hsl(230, 63%, 58%) |
| HSV | hsv(230, 62%, 84%) |
| CMYK | cmyk(62.3%, 52.1%, 0%, 15.7%) |
| CIE-LAB | lab(47.44, 26.45, -60.19) |
| CIE-LCH | lch(47.44, 65.74, 293.72°) |
| OKLab | oklab(55.69% 0.0041 -0.1726) |
| OKLCH | oklch(55.69% 0.173 271.4) |
| XYZ | xyz(20.5052, 16.3544, 66.3529) |
| Luminance | 0.1636 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal Blue
#4169E1
ΔE00 2.43
Cornflower Blue
#5170D7
ΔE00 3.23
Azul
#1D5DEC
ΔE00 4.96
Dark Periwinkle
#665FD1
ΔE00 4.98
Warm Blue
#4B57DB
ΔE00 5.18
Bright Blue
#0165FC
ΔE00 5.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5167D7 #D7C151
analogous
#51AAD7 #5167D7 #7E51D7
triadic
#5167D7 #D75167 #67D751
tetradic
#5167D7 #D751AA #D7C151 #51D77E
square
#5167D7 #D751AA #D7C151 #51D77E
split-complementary
#5167D7 #D77E51 #AAD751
monochromatic
#20328D #2C44BF #5167D7 #8392E2 #B5BEEE
Accessibility & contrast
On white
4.92
#5167D7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.27
#5167D7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5167D7
4.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5167D7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5167D7 | 1.00 | 4.92 | 4.27 | 4.92 |
| #FFFFFF | 4.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2277DB
Deuteranopia (green-blind)
#006BD5
Tritanopia (blue-blind)
#008195
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #5167d7; /* rgb */ color: rgb(81, 103, 215); /* oklch */ color: oklch(55.7% 0.173 271.4);
Tailwind
colors: {
custom: {
50: '#8e92e4',
500: '#5167d7',
950: '#000000',
},
}SCSS
$custom: #5167d7; $custom-light: #8e92e4; $custom-dark: #000000;
JSON
{
"hex": "#5167d7",
"rgb": {
"r": 81,
"g": 103,
"b": 215
},
"hsl": {
"h": 230.149,
"s": 62.617,
"l": 58.039
},
"oklch": {
"l": 0.55688,
"c": 0.17268,
"h": 271.4
},
"luminance": 0.16356
}Semantic roles & 50–950 ramp
primary
#5167D7
secondary
#DDD4A7
accent
#CB42E6
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0D0C16
muted
#7E7D84