#5166C5#5166C5
#5166C5 is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.2% C 0.149 H 271.3°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #5166C5 |
|---|---|
| RGB | rgb(81, 102, 197) |
| HSL | hsl(229, 50%, 55%) |
| HSV | hsv(229, 59%, 77%) |
| CMYK | cmyk(58.9%, 48.2%, 0%, 22.7%) |
| CIE-LAB | lab(46.02, 20.98, -52.16) |
| CIE-LCH | lch(46.02, 56.22, 291.91°) |
| OKLab | oklab(54.25% 0.0033 -0.149) |
| OKLCH | oklch(54.25% 0.149 271.3) |
| XYZ | xyz(18.2194, 15.2819, 54.8021) |
| Luminance | 0.1528 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal Blue
#4169E1
ΔE00 4.07
Cornflower Blue
#5170D7
ΔE00 4.28
French Blue
#436BAD
ΔE00 5.24
Dark Periwinkle
#665FD1
ΔE00 5.42
Warm Blue
#4B57DB
ΔE00 5.74
Azul
#1D5DEC
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5166C5 #C5B051
analogous
#51A0C5 #5166C5 #7651C5
triadic
#5166C5 #C55166 #66C551
tetradic
#5166C5 #C551A0 #C5B051 #51C576
square
#5166C5 #C551A0 #C5B051 #51C576
split-complementary
#5166C5 #C57651 #A0C551
monochromatic
#273575 #364AA3 #5166C5 #7F8ED4 #ADB7E4
Accessibility & contrast
On white
5.18
#5166C5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.06
#5166C5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5166C5
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5166C5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5166C5 | 1.00 | 5.18 | 4.06 | 5.18 |
| #FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3772C8
Deuteranopia (green-blind)
#2468C3
Tritanopia (blue-blind)
#007B8C
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #5166c5; /* rgb */ color: rgb(81, 102, 197); /* oklch */ color: oklch(54.2% 0.149 271.3);
Tailwind
colors: {
custom: {
50: '#8c91d7',
500: '#5166c5',
950: '#000000',
},
}SCSS
$custom: #5166c5; $custom-light: #8c91d7; $custom-dark: #000000;
JSON
{
"hex": "#5166c5",
"rgb": {
"r": 81,
"g": 102,
"b": 197
},
"hsl": {
"h": 229.138,
"s": 50,
"l": 54.51
},
"oklch": {
"l": 0.54245,
"c": 0.14906,
"h": 271.3
},
"luminance": 0.15283
}Semantic roles & 50–950 ramp
primary
#5166C5
secondary
#D1C9A0
accent
#C04EDA
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0C14
muted
#7E7D83