#504C97#504C97
#504C97 is a mid, moderate blue. Relative luminance 0.091; OKLCH L 45.9% C 0.119 H 283.1°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).
Color values
| HEX | #504C97 |
|---|---|
| RGB | rgb(80, 76, 151) |
| HSL | hsl(243, 33%, 45%) |
| HSV | hsv(243, 50%, 59%) |
| CMYK | cmyk(47%, 49.7%, 0%, 40.8%) |
| CIE-LAB | lab(36.19, 22.17, -40.77) |
| CIE-LCH | lch(36.19, 46.41, 298.54°) |
| OKLab | oklab(45.87% 0.0269 -0.1158) |
| OKLCH | oklch(45.87% 0.119 283.1) |
| XYZ | xyz(11.4770, 9.1082, 30.4255) |
| Luminance | 0.0911 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Twilight
#4E518B
ΔE00 3.39
Blueberry
#464196
ΔE00 3.63
Darkslateblue
#483D8B
ΔE00 4.73
Dusk
#4E5481
ΔE00 6.07
Ocean Blue
#4F42B5
ΔE00 6.18
Iris
#6258C4
ΔE00 8.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#504C97 #93974C
analogous
#4C6E97 #504C97 #764C97
triadic
#504C97 #97504C #4C9750
tetradic
#504C97 #974C6E #93974C #4C9776
square
#504C97 #974C6E #93974C #4C9776
split-complementary
#504C97 #97764C #6E974C
monochromatic
#252346 #3A386E #504C97 #6F6BB5 #9794C9
Accessibility & contrast
On white
7.44
#504C97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.82
#504C97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #504C97
7.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##504C97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##504C97 | 1.00 | 7.44 | 2.82 | 7.44 |
| #FFFFFF | 7.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2C589A
Deuteranopia (green-blind)
#285395
Tritanopia (blue-blind)
#385C6A
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #504c97; /* rgb */ color: rgb(80, 76, 151); /* oklch */ color: oklch(45.9% 0.119 283.1);
Tailwind
colors: {
custom: {
50: '#867eb6',
500: '#504c97',
950: '#000000',
},
}SCSS
$custom: #504c97; $custom-light: #867eb6; $custom-dark: #000000;
JSON
{
"hex": "#504c97",
"rgb": {
"r": 80,
"g": 76,
"b": 151
},
"hsl": {
"h": 243.2,
"s": 33.04,
"l": 44.51
},
"oklch": {
"l": 0.45872,
"c": 0.11888,
"h": 283.1
},
"luminance": 0.09109
}Semantic roles & 50–950 ramp
primary
#504C97
secondary
#B3B689
accent
#C95FC3
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0B0911
muted
#7C7B80