#5166C3#5166C3
#5166C3 is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.1% C 0.146 H 271.2°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).
Color values
| HEX | #5166C3 |
|---|---|
| RGB | rgb(81, 102, 195) |
| HSL | hsl(229, 49%, 54%) |
| HSV | hsv(229, 58%, 76%) |
| CMYK | cmyk(58.5%, 47.7%, 0%, 23.5%) |
| CIE-LAB | lab(45.89, 20.30, -51.21) |
| CIE-LCH | lch(45.89, 55.08, 291.63°) |
| OKLab | oklab(54.11% 0.0031 -0.1462) |
| OKLCH | oklch(54.11% 0.146 271.2) |
| XYZ | xyz(17.9918, 15.1908, 53.6032) |
| Luminance | 0.1519 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal Blue
#4169E1
ΔE00 4.29
Cornflower Blue
#5170D7
ΔE00 4.43
French Blue
#436BAD
ΔE00 5.08
Dark Periwinkle
#665FD1
ΔE00 5.57
Warm Blue
#4B57DB
ΔE00 5.90
Azul
#1D5DEC
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5166C3 #C3AE51
analogous
#519FC3 #5166C3 #7551C3
triadic
#5166C3 #C35166 #66C351
tetradic
#5166C3 #C3519F #C3AE51 #51C375
square
#5166C3 #C3519F #C3AE51 #51C375
split-complementary
#5166C3 #C37551 #9FC351
monochromatic
#273572 #374AA0 #5166C3 #7F8ED3 #ACB6E2
Accessibility & contrast
On white
5.20
#5166C3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.04
#5166C3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5166C3
5.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5166C3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5166C3 | 1.00 | 5.20 | 4.04 | 5.20 |
| #FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3972C6
Deuteranopia (green-blind)
#2768C1
Tritanopia (blue-blind)
#007B8B
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #5166c3; /* rgb */ color: rgb(81, 102, 195); /* oklch */ color: oklch(54.1% 0.146 271.2);
Tailwind
colors: {
custom: {
50: '#8b91d6',
500: '#5166c3',
950: '#000000',
},
}SCSS
$custom: #5166c3; $custom-light: #8b91d6; $custom-dark: #000000;
JSON
{
"hex": "#5166c3",
"rgb": {
"r": 81,
"g": 102,
"b": 195
},
"hsl": {
"h": 228.947,
"s": 48.718,
"l": 54.118
},
"oklch": {
"l": 0.54111,
"c": 0.14624,
"h": 271.2
},
"luminance": 0.15192
}Semantic roles & 50–950 ramp
primary
#5166C3
secondary
#D0C7A0
accent
#BF50D8
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0C14
muted
#7E7D83