#5181CD#5181CD
#5181CD is a mid, vivid blue. Relative luminance 0.219; OKLCH L 60.4% C 0.128 H 259.2°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).
Color values
| HEX | #5181CD |
|---|---|
| RGB | rgb(81, 129, 205) |
| HSL | hsl(217, 55%, 56%) |
| HSV | hsv(217, 60%, 80%) |
| CMYK | cmyk(60.5%, 37.1%, 0%, 19.6%) |
| CIE-LAB | lab(53.87, 7.02, -44.21) |
| CIE-LCH | lch(53.87, 44.77, 279.02°) |
| OKLab | oklab(60.43% -0.0238 -0.1254) |
| OKLCH | oklch(60.43% 0.128 259.2) |
| XYZ | xyz(22.2592, 21.8556, 60.7913) |
| Luminance | 0.2186 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Off Blue
#5684AE
ΔE00 4.36
Cool Blue
#4984B8
ΔE00 4.37
Faded Blue
#658CBB
ΔE00 4.54
Dodger Blue
#3E82FC
ΔE00 4.62
Dusty Blue
#5A86AD
ΔE00 4.82
Steel Blue
#4682B4
ΔE00 4.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5181CD #CD9D51
analogous
#51BFCD #5181CD #5F51CD
triadic
#5181CD #CD5181 #81CD51
tetradic
#5181CD #CD51BF #CD9D51 #51CD5F
square
#5181CD #CD51BF #CD9D51 #51CD5F
split-complementary
#5181CD #CD5F51 #BFCD51
monochromatic
#25487F #3262AF #5181CD #81A3DB #B0C6E8
Accessibility & contrast
On white
3.91
#5181CD on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.37
#5181CD on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5181CD
5.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5181CD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5181CD | 1.00 | 3.91 | 5.37 | 5.37 |
| #FFFFFF | 3.91 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.37 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.37 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6187D0
Deuteranopia (green-blind)
#507BCB
Tritanopia (blue-blind)
#00929D
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #5181cd; /* rgb */ color: rgb(81, 129, 205); /* oklch */ color: oklch(60.4% 0.128 259.2);
Tailwind
colors: {
custom: {
50: '#8ca5dc',
500: '#5181cd',
950: '#000000',
},
}SCSS
$custom: #5181cd; $custom-light: #8ca5dc; $custom-dark: #000000;
JSON
{
"hex": "#5181cd",
"rgb": {
"r": 81,
"g": 129,
"b": 205
},
"hsl": {
"h": 216.774,
"s": 55.357,
"l": 56.078
},
"oklch": {
"l": 0.60432,
"c": 0.12765,
"h": 259.2
},
"luminance": 0.21858
}Semantic roles & 50–950 ramp
primary
#5181CD
secondary
#D7C3A3
accent
#A549DF
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83