#5181DF#5181DF
#5181DF is a mid, vivid blue. Relative luminance 0.228; OKLCH L 61.5% C 0.152 H 262.4°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).
Color values
| HEX | #5181DF |
|---|---|
| RGB | rgb(81, 129, 223) |
| HSL | hsl(220, 69%, 60%) |
| HSV | hsv(220, 64%, 87%) |
| CMYK | cmyk(63.7%, 42.2%, 0%, 12.5%) |
| CIE-LAB | lab(54.84, 13.12, -52.83) |
| CIE-LCH | lch(54.84, 54.43, 283.94°) |
| OKLab | oklab(61.5% -0.02 -0.1506) |
| OKLCH | oklch(61.5% 0.152 262.4) |
| XYZ | xyz(24.5582, 22.7753, 72.8996) |
| Luminance | 0.2278 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dodger Blue
#3E82FC
ΔE00 3.02
Soft Blue
#6488EA
ΔE00 3.64
Lightish Blue
#3D7AFD
ΔE00 3.70
Clear Blue
#247AFD
ΔE00 3.89
Azure
#007FFF
ΔE00 4.28
Deep Sky Blue
#0D75F8
ΔE00 5.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5181DF #DFAF51
analogous
#51C8DF #5181DF #6851DF
triadic
#5181DF #DF5181 #81DF51
tetradic
#5181DF #DF51C8 #DFAF51 #51DF68
square
#5181DF #DF51C8 #DFAF51 #51DF68
split-complementary
#5181DF #DF6851 #C8DF51
monochromatic
#1C4799 #265ECD #5181DF #85A6E9 #B8CCF2
Accessibility & contrast
On white
3.78
#5181DF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.56
#5181DF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5181DF
5.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5181DF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5181DF | 1.00 | 3.78 | 5.56 | 5.56 |
| #FFFFFF | 3.78 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.56 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.56 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#568AE3
Deuteranopia (green-blind)
#407DDD
Tritanopia (blue-blind)
#0096A5
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #5181df; /* rgb */ color: rgb(81, 129, 223); /* oklch */ color: oklch(61.5% 0.152 262.4);
Tailwind
colors: {
custom: {
50: '#8fa5e9',
500: '#5181df',
950: '#000000',
},
}SCSS
$custom: #5181df; $custom-light: #8fa5e9; $custom-dark: #000000;
JSON
{
"hex": "#5181df",
"rgb": {
"r": 81,
"g": 129,
"b": 223
},
"hsl": {
"h": 219.718,
"s": 68.932,
"l": 59.608
},
"oklch": {
"l": 0.61495,
"c": 0.15196,
"h": 262.4
},
"luminance": 0.22778
}Semantic roles & 50–950 ramp
primary
#5181DF
secondary
#E1CFAA
accent
#B03CEC
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84