#5181CE#5181CE
#5181CE is a mid, vivid blue. Relative luminance 0.219; OKLCH L 60.5% C 0.129 H 259.5°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).
Color values
| HEX | #5181CE |
|---|---|
| RGB | rgb(81, 129, 206) |
| HSL | hsl(217, 56%, 56%) |
| HSV | hsv(217, 61%, 81%) |
| CMYK | cmyk(60.7%, 37.4%, 0%, 19.2%) |
| CIE-LAB | lab(53.93, 7.35, -44.70) |
| CIE-LCH | lch(53.93, 45.30, 279.34°) |
| OKLab | oklab(60.49% -0.0236 -0.1268) |
| OKLCH | oklch(60.49% 0.129 259.5) |
| XYZ | xyz(22.3803, 21.9041, 61.4291) |
| Luminance | 0.2191 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Off Blue
#5684AE
ΔE00 4.44
Cool Blue
#4984B8
ΔE00 4.46
Dodger Blue
#3E82FC
ΔE00 4.53
Faded Blue
#658CBB
ΔE00 4.56
Dusty Blue
#5A86AD
ΔE00 4.88
Clear Blue
#247AFD
ΔE00 4.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5181CE #CE9E51
analogous
#51C0CE #5181CE #6051CE
triadic
#5181CE #CE5181 #81CE51
tetradic
#5181CE #CE51C0 #CE9E51 #51CE60
square
#5181CE #CE51C0 #CE9E51 #51CE60
split-complementary
#5181CE #CE6051 #C0CE51
monochromatic
#244880 #3262B0 #5181CE #81A4DB #B1C6E9
Accessibility & contrast
On white
3.90
#5181CE on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.38
#5181CE on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5181CE
5.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5181CE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5181CE | 1.00 | 3.90 | 5.38 | 5.38 |
| #FFFFFF | 3.90 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.38 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.38 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6087D1
Deuteranopia (green-blind)
#4F7CCC
Tritanopia (blue-blind)
#00929E
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #5181ce; /* rgb */ color: rgb(81, 129, 206); /* oklch */ color: oklch(60.5% 0.129 259.5);
Tailwind
colors: {
custom: {
50: '#8ca5dd',
500: '#5181ce',
950: '#000000',
},
}SCSS
$custom: #5181ce; $custom-light: #8ca5dd; $custom-dark: #000000;
JSON
{
"hex": "#5181ce",
"rgb": {
"r": 81,
"g": 129,
"b": 206
},
"hsl": {
"h": 216.96,
"s": 56.054,
"l": 56.275
},
"oklch": {
"l": 0.60489,
"c": 0.129,
"h": 259.5
},
"luminance": 0.21906
}Semantic roles & 50–950 ramp
primary
#5181CE
secondary
#D7C3A4
accent
#A548DF
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83