#5166C2#5166C2
#5166C2 is a mid, vivid blue. Relative luminance 0.151; OKLCH L 54.0% C 0.145 H 271.2°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).
Color values
| HEX | #5166C2 |
|---|---|
| RGB | rgb(81, 102, 194) |
| HSL | hsl(229, 48%, 54%) |
| HSV | hsv(229, 58%, 76%) |
| CMYK | cmyk(58.2%, 47.4%, 0%, 23.9%) |
| CIE-LAB | lab(45.83, 19.97, -50.73) |
| CIE-LCH | lch(45.83, 54.52, 291.48°) |
| OKLab | oklab(54.05% 0.0029 -0.1448) |
| OKLCH | oklch(54.05% 0.145 271.2) |
| XYZ | xyz(17.8791, 15.1457, 53.0097) |
| Luminance | 0.1515 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal Blue
#4169E1
ΔE00 4.40
Cornflower Blue
#5170D7
ΔE00 4.51
French Blue
#436BAD
ΔE00 5.00
Dark Periwinkle
#665FD1
ΔE00 5.64
Warm Blue
#4B57DB
ΔE00 5.99
Azul
#1D5DEC
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5166C2 #C2AD51
analogous
#519FC2 #5166C2 #7551C2
triadic
#5166C2 #C25166 #66C251
tetradic
#5166C2 #C2519F #C2AD51 #51C275
square
#5166C2 #C2519F #C2AD51 #51C275
split-complementary
#5166C2 #C27551 #9FC251
monochromatic
#283571 #374B9E #5166C2 #7E8ED2 #ACB6E2
Accessibility & contrast
On white
5.21
#5166C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.03
#5166C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5166C2
5.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5166C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5166C2 | 1.00 | 5.21 | 4.03 | 5.21 |
| #FFFFFF | 5.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3A72C5
Deuteranopia (green-blind)
#2868C0
Tritanopia (blue-blind)
#007B8B
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #5166c2; /* rgb */ color: rgb(81, 102, 194); /* oklch */ color: oklch(54.0% 0.145 271.2);
Tailwind
colors: {
custom: {
50: '#8b91d5',
500: '#5166c2',
950: '#000000',
},
}SCSS
$custom: #5166c2; $custom-light: #8b91d5; $custom-dark: #000000;
JSON
{
"hex": "#5166c2",
"rgb": {
"r": 81,
"g": 102,
"b": 194
},
"hsl": {
"h": 228.85,
"s": 48.085,
"l": 53.922
},
"oklch": {
"l": 0.54045,
"c": 0.14484,
"h": 271.2
},
"luminance": 0.15147
}Semantic roles & 50–950 ramp
primary
#5166C2
secondary
#D0C79F
accent
#BE50D8
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0C14
muted
#7E7D83