#5166CB#5166CB
#5166CB is a mid, vivid blue. Relative luminance 0.156; OKLCH L 54.7% C 0.157 H 271.5°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).
Color values
| HEX | #5166CB |
|---|---|
| RGB | rgb(81, 102, 203) |
| HSL | hsl(230, 54%, 56%) |
| HSV | hsv(230, 60%, 80%) |
| CMYK | cmyk(60.1%, 49.8%, 0%, 20.4%) |
| CIE-LAB | lab(46.39, 23.00, -55.01) |
| CIE-LCH | lch(46.39, 59.62, 292.69°) |
| OKLab | oklab(54.65% 0.004 -0.1574) |
| OKLCH | oklch(54.65% 0.157 271.5) |
| XYZ | xyz(18.9206, 15.5623, 58.4951) |
| Luminance | 0.1556 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal Blue
#4169E1
ΔE00 3.46
Cornflower Blue
#5170D7
ΔE00 3.90
Dark Periwinkle
#665FD1
ΔE00 5.06
Warm Blue
#4B57DB
ΔE00 5.31
Azul
#1D5DEC
ΔE00 5.53
French Blue
#436BAD
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5166CB #CBB651
analogous
#51A3CB #5166CB #7951CB
triadic
#5166CB #CB5166 #66CB51
tetradic
#5166CB #CB51A3 #CBB651 #51CB79
square
#5166CB #CB51A3 #CBB651 #51CB79
split-complementary
#5166CB #CB7951 #A3CB51
monochromatic
#25347C #3348AC #5166CB #808FD9 #AFB9E7
Accessibility & contrast
On white
5.11
#5166CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.11
#5166CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5166CB
5.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5166CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5166CB | 1.00 | 5.11 | 4.11 | 5.11 |
| #FFFFFF | 5.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3074CF
Deuteranopia (green-blind)
#1769C9
Tritanopia (blue-blind)
#007D8F
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #5166cb; /* rgb */ color: rgb(81, 102, 203); /* oklch */ color: oklch(54.7% 0.157 271.5);
Tailwind
colors: {
custom: {
50: '#8c91db',
500: '#5166cb',
950: '#000000',
},
}SCSS
$custom: #5166cb; $custom-light: #8c91db; $custom-dark: #000000;
JSON
{
"hex": "#5166cb",
"rgb": {
"r": 81,
"g": 102,
"b": 203
},
"hsl": {
"h": 229.672,
"s": 53.982,
"l": 55.686
},
"oklch": {
"l": 0.54652,
"c": 0.15744,
"h": 271.5
},
"luminance": 0.15564
}Semantic roles & 50–950 ramp
primary
#5166CB
secondary
#D5CDA3
accent
#C44ADD
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83