#5166C1#5166C1
#5166C1 is a mid, vivid blue. Relative luminance 0.151; OKLCH L 54.0% C 0.143 H 271.1°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).
Color values
| HEX | #5166C1 |
|---|---|
| RGB | rgb(81, 102, 193) |
| HSL | hsl(229, 47%, 54%) |
| HSV | hsv(229, 58%, 76%) |
| CMYK | cmyk(58%, 47.2%, 0%, 24.3%) |
| CIE-LAB | lab(45.77, 19.63, -50.25) |
| CIE-LCH | lch(45.77, 53.94, 291.34°) |
| OKLab | oklab(53.98% 0.0028 -0.1434) |
| OKLCH | oklch(53.98% 0.143 271.1) |
| XYZ | xyz(17.7672, 15.1010, 52.4202) |
| Luminance | 0.1510 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal Blue
#4169E1
ΔE00 4.51
Cornflower Blue
#5170D7
ΔE00 4.59
French Blue
#436BAD
ΔE00 4.92
Dark Periwinkle
#665FD1
ΔE00 5.72
Warm Blue
#4B57DB
ΔE00 6.07
Azul
#1D5DEC
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5166C1 #C1AC51
analogous
#519EC1 #5166C1 #7451C1
triadic
#5166C1 #C15166 #66C151
tetradic
#5166C1 #C1519E #C1AC51 #51C174
square
#5166C1 #C1519E #C1AC51 #51C174
split-complementary
#5166C1 #C17451 #9EC151
monochromatic
#283570 #384B9D #5166C1 #7E8ED1 #ABB5E1
Accessibility & contrast
On white
5.22
#5166C1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.02
#5166C1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5166C1
5.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5166C1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5166C1 | 1.00 | 5.22 | 4.02 | 5.22 |
| #FFFFFF | 5.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3B72C4
Deuteranopia (green-blind)
#2A68BF
Tritanopia (blue-blind)
#007A8A
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #5166c1; /* rgb */ color: rgb(81, 102, 193); /* oklch */ color: oklch(54.0% 0.143 271.1);
Tailwind
colors: {
custom: {
50: '#8b91d4',
500: '#5166c1',
950: '#000000',
},
}SCSS
$custom: #5166c1; $custom-light: #8b91d4; $custom-dark: #000000;
JSON
{
"hex": "#5166c1",
"rgb": {
"r": 81,
"g": 102,
"b": 193
},
"hsl": {
"h": 228.75,
"s": 47.458,
"l": 53.725
},
"oklch": {
"l": 0.53979,
"c": 0.14342,
"h": 271.1
},
"luminance": 0.15102
}Semantic roles & 50–950 ramp
primary
#5166C1
secondary
#CFC69F
accent
#BE51D7
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0C14
muted
#7E7D83