#5161C3#5161C3
#5161C3 is a mid, vivid blue. Relative luminance 0.142; OKLCH L 53.1% C 0.153 H 273.1°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).
Color values
| HEX | #5161C3 |
|---|---|
| RGB | rgb(81, 97, 195) |
| HSL | hsl(232, 49%, 54%) |
| HSV | hsv(232, 58%, 76%) |
| CMYK | cmyk(58.5%, 50.3%, 0%, 23.5%) |
| CIE-LAB | lab(44.57, 23.45, -53.33) |
| CIE-LCH | lch(44.57, 58.26, 293.73°) |
| OKLab | oklab(53.11% 0.0083 -0.1525) |
| OKLCH | oklch(53.11% 0.153 273.1) |
| XYZ | xyz(17.5151, 14.2375, 53.4443) |
| Luminance | 0.1424 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 4.56
Dark Periwinkle
#665FD1
ΔE00 4.62
Iris
#6258C4
ΔE00 4.92
Royal Blue
#4169E1
ΔE00 5.22
Slate Blue
#6A5ACD
ΔE00 5.87
Cornflower Blue
#5170D7
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5161C3 #C3B351
analogous
#519AC3 #5161C3 #7A51C3
triadic
#5161C3 #C35161 #61C351
tetradic
#5161C3 #C3519A #C3B351 #51C37A
square
#5161C3 #C3519A #C3B351 #51C37A
split-complementary
#5161C3 #C37A51 #9AC351
monochromatic
#273272 #3746A0 #5161C3 #7F8AD3 #ACB4E2
Accessibility & contrast
On white
5.46
#5161C3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.85
#5161C3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5161C3
5.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5161C3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5161C3 | 1.00 | 5.46 | 3.85 | 5.46 |
| #FFFFFF | 5.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D6FC7
Deuteranopia (green-blind)
#1765C1
Tritanopia (blue-blind)
#007789
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #5161c3; /* rgb */ color: rgb(81, 97, 195); /* oklch */ color: oklch(53.1% 0.153 273.1);
Tailwind
colors: {
custom: {
50: '#8b8dd6',
500: '#5161c3',
950: '#000000',
},
}SCSS
$custom: #5161c3; $custom-light: #8b8dd6; $custom-dark: #000000;
JSON
{
"hex": "#5161c3",
"rgb": {
"r": 81,
"g": 97,
"b": 195
},
"hsl": {
"h": 231.579,
"s": 48.718,
"l": 54.118
},
"oklch": {
"l": 0.53108,
"c": 0.15275,
"h": 273.1
},
"luminance": 0.14239
}Semantic roles & 50–950 ramp
primary
#5161C3
secondary
#D0C9A0
accent
#C550D8
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0C14
muted
#7E7D83