#5181E4#5181E4
#5181E4 is a mid, vivid blue. Relative luminance 0.231; OKLCH L 61.8% C 0.159 H 263.1°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).
Color values
| HEX | #5181E4 |
|---|---|
| RGB | rgb(81, 129, 228) |
| HSL | hsl(220, 73%, 61%) |
| HSV | hsv(220, 64%, 89%) |
| CMYK | cmyk(64.5%, 43.4%, 0%, 10.6%) |
| CIE-LAB | lab(55.12, 14.83, -55.18) |
| CIE-LCH | lch(55.12, 57.13, 285.04°) |
| OKLab | oklab(61.8% -0.0191 -0.1575) |
| OKLCH | oklch(61.8% 0.159 263.1) |
| XYZ | xyz(25.2423, 23.0489, 76.5024) |
| Luminance | 0.2305 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dodger Blue
#3E82FC
ΔE00 2.63
Lightish Blue
#3D7AFD
ΔE00 3.31
Soft Blue
#6488EA
ΔE00 3.31
Clear Blue
#247AFD
ΔE00 3.68
Azure
#007FFF
ΔE00 4.20
Deep Sky Blue
#0D75F8
ΔE00 4.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5181E4 #E4B451
analogous
#51CAE4 #5181E4 #6A51E4
triadic
#5181E4 #E45181 #81E451
tetradic
#5181E4 #E451CA #E4B451 #51E46A
square
#5181E4 #E451CA #E4B451 #51E46A
split-complementary
#5181E4 #E46A51 #CAE451
monochromatic
#1946A2 #215CD7 #5181E4 #86A7EC #BBCEF4
Accessibility & contrast
On white
3.74
#5181E4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.61
#5181E4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5181E4
5.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5181E4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5181E4 | 1.00 | 3.74 | 5.61 | 5.61 |
| #FFFFFF | 3.74 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.61 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.61 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#528BE8
Deuteranopia (green-blind)
#3A7EE2
Tritanopia (blue-blind)
#0098A7
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #5181e4; /* rgb */ color: rgb(81, 129, 228); /* oklch */ color: oklch(61.8% 0.159 263.1);
Tailwind
colors: {
custom: {
50: '#90a5ed',
500: '#5181e4',
950: '#000000',
},
}SCSS
$custom: #5181e4; $custom-light: #90a5ed; $custom-dark: #000000;
JSON
{
"hex": "#5181e4",
"rgb": {
"r": 81,
"g": 129,
"b": 228
},
"hsl": {
"h": 220.408,
"s": 73.134,
"l": 60.588
},
"oklch": {
"l": 0.61804,
"c": 0.15869,
"h": 263.1
},
"luminance": 0.23051
}Semantic roles & 50–950 ramp
primary
#5181E4
secondary
#E4D2AC
accent
#9510D5
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84