#504E97#504E97
#504E97 is a mid, moderate blue. Relative luminance 0.094; OKLCH L 46.3% C 0.116 H 282.1°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).
Color values
| HEX | #504E97 |
|---|---|
| RGB | rgb(80, 78, 151) |
| HSL | hsl(242, 32%, 45%) |
| HSV | hsv(242, 48%, 59%) |
| CMYK | cmyk(47%, 48.3%, 0%, 40.8%) |
| CIE-LAB | lab(36.72, 20.89, -39.92) |
| CIE-LCH | lch(36.72, 45.06, 297.62°) |
| OKLab | oklab(46.27% 0.0243 -0.1133) |
| OKLCH | oklch(46.27% 0.116 282.1) |
| XYZ | xyz(11.6169, 9.3881, 30.4721) |
| Luminance | 0.0939 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Twilight
#4E518B
ΔE00 2.89
Blueberry
#464196
ΔE00 4.24
Darkslateblue
#483D8B
ΔE00 5.36
Dusk
#4E5481
ΔE00 5.60
Ocean Blue
#4F42B5
ΔE00 6.62
Dusky Blue
#475F94
ΔE00 7.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#504E97 #95974E
analogous
#4E7097 #504E97 #754E97
triadic
#504E97 #97504E #4E9750
tetradic
#504E97 #974E70 #95974E #4E9775
square
#504E97 #974E70 #95974E #4E9775
split-complementary
#504E97 #97754E #70974E
monochromatic
#252446 #3B396F #504E97 #706EB4 #9896C9
Accessibility & contrast
On white
7.30
#504E97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.88
#504E97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #504E97
7.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##504E97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##504E97 | 1.00 | 7.30 | 2.88 | 7.30 |
| #FFFFFF | 7.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#30599A
Deuteranopia (green-blind)
#2B5495
Tritanopia (blue-blind)
#385D6B
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #504e97; /* rgb */ color: rgb(80, 78, 151); /* oklch */ color: oklch(46.3% 0.116 282.1);
Tailwind
colors: {
custom: {
50: '#857fb6',
500: '#504e97',
950: '#000000',
},
}SCSS
$custom: #504e97; $custom-light: #857fb6; $custom-dark: #000000;
JSON
{
"hex": "#504e97",
"rgb": {
"r": 80,
"g": 78,
"b": 151
},
"hsl": {
"h": 241.644,
"s": 31.878,
"l": 44.902
},
"oklch": {
"l": 0.46271,
"c": 0.11589,
"h": 282.1
},
"luminance": 0.09389
}Semantic roles & 50–950 ramp
primary
#504E97
secondary
#B4B68B
accent
#C860C5
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0B0A11
muted
#7C7C80