#5181CF#5181CF
#5181CF is a mid, vivid blue. Relative luminance 0.220; OKLCH L 60.5% C 0.130 H 259.7°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).
Color values
| HEX | #5181CF |
|---|---|
| RGB | rgb(81, 129, 207) |
| HSL | hsl(217, 57%, 56%) |
| HSV | hsv(217, 61%, 81%) |
| CMYK | cmyk(60.9%, 37.7%, 0%, 18.8%) |
| CIE-LAB | lab(53.98, 7.69, -45.18) |
| CIE-LCH | lch(53.98, 45.83, 279.66°) |
| OKLab | oklab(60.55% -0.0234 -0.1282) |
| OKLCH | oklch(60.55% 0.13 259.7) |
| XYZ | xyz(22.5021, 21.9528, 62.0709) |
| Luminance | 0.2195 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dodger Blue
#3E82FC
ΔE00 4.44
Off Blue
#5684AE
ΔE00 4.52
Cool Blue
#4984B8
ΔE00 4.54
Faded Blue
#658CBB
ΔE00 4.59
Clear Blue
#247AFD
ΔE00 4.84
Azure
#007FFF
ΔE00 4.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5181CF #CF9F51
analogous
#51C0CF #5181CF #6051CF
triadic
#5181CF #CF5181 #81CF51
tetradic
#5181CF #CF51C0 #CF9F51 #51CF60
square
#5181CF #CF51C0 #CF9F51 #51CF60
split-complementary
#5181CF #CF6051 #C0CF51
monochromatic
#244882 #3162B2 #5181CF #81A4DC #B1C6E9
Accessibility & contrast
On white
3.90
#5181CF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.39
#5181CF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5181CF
5.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5181CF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5181CF | 1.00 | 3.90 | 5.39 | 5.39 |
| #FFFFFF | 3.90 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.39 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.39 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6087D2
Deuteranopia (green-blind)
#4E7CCD
Tritanopia (blue-blind)
#00939E
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #5181cf; /* rgb */ color: rgb(81, 129, 207); /* oklch */ color: oklch(60.5% 0.130 259.7);
Tailwind
colors: {
custom: {
50: '#8ca5de',
500: '#5181cf',
950: '#000000',
},
}SCSS
$custom: #5181cf; $custom-light: #8ca5de; $custom-dark: #000000;
JSON
{
"hex": "#5181cf",
"rgb": {
"r": 81,
"g": 129,
"b": 207
},
"hsl": {
"h": 217.143,
"s": 56.757,
"l": 56.471
},
"oklch": {
"l": 0.60546,
"c": 0.13035,
"h": 259.7
},
"luminance": 0.21955
}Semantic roles & 50–950 ramp
primary
#5181CF
secondary
#D8C4A4
accent
#A648E0
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83