#5181E2#5181E2
#5181E2 is a mid, vivid blue. Relative luminance 0.229; OKLCH L 61.7% C 0.156 H 262.8°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).
Color values
| HEX | #5181E2 |
|---|---|
| RGB | rgb(81, 129, 226) |
| HSL | hsl(220, 71%, 60%) |
| HSV | hsv(220, 64%, 89%) |
| CMYK | cmyk(64.2%, 42.9%, 0%, 11.4%) |
| CIE-LAB | lab(55.01, 14.14, -54.24) |
| CIE-LCH | lch(55.01, 56.05, 284.61°) |
| OKLab | oklab(61.68% -0.0195 -0.1548) |
| OKLCH | oklch(61.68% 0.156 262.8) |
| XYZ | xyz(24.9662, 22.9385, 75.0486) |
| Luminance | 0.2294 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dodger Blue
#3E82FC
ΔE00 2.78
Soft Blue
#6488EA
ΔE00 3.43
Lightish Blue
#3D7AFD
ΔE00 3.46
Clear Blue
#247AFD
ΔE00 3.76
Azure
#007FFF
ΔE00 4.23
Deep Sky Blue
#0D75F8
ΔE00 4.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5181E2 #E2B251
analogous
#51CAE2 #5181E2 #6951E2
triadic
#5181E2 #E25181 #81E251
tetradic
#5181E2 #E251CA #E2B251 #51E269
square
#5181E2 #E251CA #E2B251 #51E269
split-complementary
#5181E2 #E26951 #CAE251
monochromatic
#1A469E #235DD3 #5181E2 #85A7EB #BACDF3
Accessibility & contrast
On white
3.76
#5181E2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.59
#5181E2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5181E2
5.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5181E2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5181E2 | 1.00 | 3.76 | 5.59 | 5.59 |
| #FFFFFF | 3.76 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.59 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.59 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#548BE6
Deuteranopia (green-blind)
#3C7DE0
Tritanopia (blue-blind)
#0097A6
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #5181e2; /* rgb */ color: rgb(81, 129, 226); /* oklch */ color: oklch(61.7% 0.156 262.8);
Tailwind
colors: {
custom: {
50: '#8fa5ec',
500: '#5181e2',
950: '#000000',
},
}SCSS
$custom: #5181e2; $custom-light: #8fa5ec; $custom-dark: #000000;
JSON
{
"hex": "#5181e2",
"rgb": {
"r": 81,
"g": 129,
"b": 226
},
"hsl": {
"h": 220.138,
"s": 71.429,
"l": 60.196
},
"oklch": {
"l": 0.6168,
"c": 0.156,
"h": 262.8
},
"luminance": 0.22941
}Semantic roles & 50–950 ramp
primary
#5181E2
secondary
#E3D1AC
accent
#9312D3
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84