#5166CF#5166CF
#5166CF is a mid, vivid blue. Relative luminance 0.158; OKLCH L 54.9% C 0.163 H 271.5°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).
Color values
| HEX | #5166CF |
|---|---|
| RGB | rgb(81, 102, 207) |
| HSL | hsl(230, 57%, 56%) |
| HSV | hsv(230, 61%, 81%) |
| CMYK | cmyk(60.9%, 50.7%, 0%, 18.8%) |
| CIE-LAB | lab(46.65, 24.36, -56.89) |
| CIE-LCH | lch(46.65, 61.88, 293.18°) |
| OKLab | oklab(54.93% 0.0044 -0.1629) |
| OKLCH | oklch(54.93% 0.163 271.5) |
| XYZ | xyz(19.4034, 15.7555, 61.0380) |
| Luminance | 0.1576 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal Blue
#4169E1
ΔE00 3.11
Cornflower Blue
#5170D7
ΔE00 3.73
Dark Periwinkle
#665FD1
ΔE00 4.89
Warm Blue
#4B57DB
ΔE00 5.09
Azul
#1D5DEC
ΔE00 5.24
Bright Blue
#0165FC
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5166CF #CFBA51
analogous
#51A5CF #5166CF #7B51CF
triadic
#5166CF #CF5166 #66CF51
tetradic
#5166CF #CF51A5 #CFBA51 #51CF7B
square
#5166CF #CF51A5 #CFBA51 #51CF7B
split-complementary
#5166CF #CF7B51 #A5CF51
monochromatic
#243382 #3146B2 #5166CF #8190DC #B1BAE9
Accessibility & contrast
On white
5.06
#5166CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.15
#5166CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5166CF
5.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5166CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5166CF | 1.00 | 5.06 | 4.15 | 5.06 |
| #FFFFFF | 5.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B74D3
Deuteranopia (green-blind)
#0869CD
Tritanopia (blue-blind)
#007E91
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #5166cf; /* rgb */ color: rgb(81, 102, 207); /* oklch */ color: oklch(54.9% 0.163 271.5);
Tailwind
colors: {
custom: {
50: '#8d91de',
500: '#5166cf',
950: '#000000',
},
}SCSS
$custom: #5166cf; $custom-light: #8d91de; $custom-dark: #000000;
JSON
{
"hex": "#5166cf",
"rgb": {
"r": 81,
"g": 102,
"b": 207
},
"hsl": {
"h": 230,
"s": 56.757,
"l": 56.471
},
"oklch": {
"l": 0.54929,
"c": 0.16298,
"h": 271.5
},
"luminance": 0.15757
}Semantic roles & 50–950 ramp
primary
#5166CF
secondary
#D8CFA4
accent
#C748E0
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83