#5181E3#5181E3
#5181E3 is a mid, vivid blue. Relative luminance 0.230; OKLCH L 61.7% C 0.157 H 263.0°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).
Color values
| HEX | #5181E3 |
|---|---|
| RGB | rgb(81, 129, 227) |
| HSL | hsl(220, 72%, 60%) |
| HSV | hsv(220, 64%, 89%) |
| CMYK | cmyk(64.3%, 43.2%, 0%, 11%) |
| CIE-LAB | lab(55.07, 14.48, -54.71) |
| CIE-LCH | lch(55.07, 56.59, 284.83°) |
| OKLab | oklab(61.74% -0.0193 -0.1562) |
| OKLCH | oklch(61.74% 0.157 263) |
| XYZ | xyz(25.1039, 22.9935, 75.7734) |
| Luminance | 0.2300 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dodger Blue
#3E82FC
ΔE00 2.70
Soft Blue
#6488EA
ΔE00 3.37
Lightish Blue
#3D7AFD
ΔE00 3.39
Clear Blue
#247AFD
ΔE00 3.72
Azure
#007FFF
ΔE00 4.21
Deep Sky Blue
#0D75F8
ΔE00 4.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5181E3 #E3B351
analogous
#51CAE3 #5181E3 #6A51E3
triadic
#5181E3 #E35181 #81E351
tetradic
#5181E3 #E351CA #E3B351 #51E36A
square
#5181E3 #E351CA #E3B351 #51E36A
split-complementary
#5181E3 #E36A51 #CAE351
monochromatic
#1A46A0 #225DD5 #5181E3 #86A7EB #BACDF4
Accessibility & contrast
On white
3.75
#5181E3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.60
#5181E3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5181E3
5.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5181E3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5181E3 | 1.00 | 3.75 | 5.60 | 5.60 |
| #FFFFFF | 3.75 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.60 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.60 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#538BE7
Deuteranopia (green-blind)
#3B7EE1
Tritanopia (blue-blind)
#0097A7
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #5181e3; /* rgb */ color: rgb(81, 129, 227); /* oklch */ color: oklch(61.7% 0.157 263.0);
Tailwind
colors: {
custom: {
50: '#8fa5ec',
500: '#5181e3',
950: '#000000',
},
}SCSS
$custom: #5181e3; $custom-light: #8fa5ec; $custom-dark: #000000;
JSON
{
"hex": "#5181e3",
"rgb": {
"r": 81,
"g": 129,
"b": 227
},
"hsl": {
"h": 220.274,
"s": 72.277,
"l": 60.392
},
"oklch": {
"l": 0.61742,
"c": 0.15735,
"h": 263
},
"luminance": 0.22996
}Semantic roles & 50–950 ramp
primary
#5181E3
secondary
#E4D1AC
accent
#9411D4
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84