#5187E1#5187E1
#5187E1 is a light, vivid blue. Relative luminance 0.245; OKLCH L 62.9% C 0.148 H 260.0°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).
Color values
| HEX | #5187E1 |
|---|---|
| RGB | rgb(81, 135, 225) |
| HSL | hsl(218, 71%, 60%) |
| HSV | hsv(218, 64%, 88%) |
| CMYK | cmyk(64%, 40%, 0%, 11.8%) |
| CIE-LAB | lab(56.60, 10.17, -51.15) |
| CIE-LCH | lch(56.60, 52.15, 281.24°) |
| OKLab | oklab(62.89% -0.0255 -0.1456) |
| OKLCH | oklch(62.89% 0.148 260) |
| XYZ | xyz(25.6431, 24.5111, 74.5993) |
| Luminance | 0.2451 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dodger Blue
#3E82FC
ΔE00 2.94
Soft Blue
#6488EA
ΔE00 3.50
Dark Sky Blue
#448EE4
ΔE00 3.56
Azure
#007FFF
ΔE00 4.19
Faded Blue
#658CBB
ΔE00 4.44
Cornflowerblue
#6495ED
ΔE00 4.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5187E1 #E1AB51
analogous
#51CFE1 #5187E1 #6351E1
triadic
#5187E1 #E15187 #87E151
tetradic
#5187E1 #E151CF #E1AB51 #51E163
square
#5187E1 #E151CF #E1AB51 #51E163
split-complementary
#5187E1 #E16351 #CFE151
monochromatic
#1B4C9D #2465D1 #5187E1 #85ABEA #B9CFF3
Accessibility & contrast
On white
3.56
#5187E1 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.90
#5187E1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5187E1
5.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5187E1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5187E1 | 1.00 | 3.56 | 5.90 | 5.90 |
| #FFFFFF | 3.56 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.90 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.90 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5F8FE5
Deuteranopia (green-blind)
#4982DF
Tritanopia (blue-blind)
#009CA9
Achromatopsia (no color)
#888888
Design tokens & code
CSS
--color: #5187e1; /* rgb */ color: rgb(81, 135, 225); /* oklch */ color: oklch(62.9% 0.148 260.0);
Tailwind
colors: {
custom: {
50: '#8fa9eb',
500: '#5187e1',
950: '#000000',
},
}SCSS
$custom: #5187e1; $custom-light: #8fa9eb; $custom-dark: #000000;
JSON
{
"hex": "#5187e1",
"rgb": {
"r": 81,
"g": 135,
"b": 225
},
"hsl": {
"h": 217.5,
"s": 70.588,
"l": 60
},
"oklch": {
"l": 0.62888,
"c": 0.14786,
"h": 260
},
"luminance": 0.24514
}Semantic roles & 50–950 ramp
primary
#5187E1
secondary
#E3CEAB
accent
#AA3AED
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84