#5161E4#5161E4
#5161E4 is a mid, vivid blue. Relative luminance 0.159; OKLCH L 55.5% C 0.197 H 272.9°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).
Color values
| HEX | #5161E4 |
|---|---|
| RGB | rgb(81, 97, 228) |
| HSL | hsl(233, 73%, 61%) |
| HSV | hsv(233, 64%, 89%) |
| CMYK | cmyk(64.5%, 57.5%, 0%, 10.6%) |
| CIE-LAB | lab(46.84, 34.57, -68.53) |
| CIE-LCH | lch(46.84, 76.75, 296.77°) |
| OKLab | oklab(55.53% 0.01 -0.1972) |
| OKLCH | oklch(55.53% 0.197 272.9) |
| XYZ | xyz(21.6670, 15.8982, 75.3106) |
| Luminance | 0.1590 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 3.44
Royal Blue
#4169E1
ΔE00 3.91
Dark Periwinkle
#665FD1
ΔE00 4.15
Azul
#1D5DEC
ΔE00 4.26
Bright Blue
#0165FC
ΔE00 5.25
Cornflower Blue
#5170D7
ΔE00 5.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5161E4 #E4D451
analogous
#51ABE4 #5161E4 #8A51E4
triadic
#5161E4 #E45161 #61E451
tetradic
#5161E4 #E451AB #E4D451 #51E48A
square
#5161E4 #E451AB #E4D451 #51E48A
split-complementary
#5161E4 #E48A51 #ABE451
monochromatic
#1928A2 #2135D7 #5161E4 #8691EC #BBC1F4
Accessibility & contrast
On white
5.02
#5161E4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.18
#5161E4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5161E4
5.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5161E4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5161E4 | 1.00 | 5.02 | 4.18 | 5.02 |
| #FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0076E8
Deuteranopia (green-blind)
#0069E1
Tritanopia (blue-blind)
#008199
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #5161e4; /* rgb */ color: rgb(81, 97, 228); /* oklch */ color: oklch(55.5% 0.197 272.9);
Tailwind
colors: {
custom: {
50: '#918ded',
500: '#5161e4',
950: '#000000',
},
}SCSS
$custom: #5161e4; $custom-light: #918ded; $custom-dark: #000000;
JSON
{
"hex": "#5161e4",
"rgb": {
"r": 81,
"g": 97,
"b": 228
},
"hsl": {
"h": 233.469,
"s": 73.134,
"l": 60.588
},
"oklch": {
"l": 0.5553,
"c": 0.19747,
"h": 272.9
},
"luminance": 0.159
}Semantic roles & 50–950 ramp
primary
#5161E4
secondary
#E4DEAC
accent
#C010D5
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84