#504FA1#504FA1
#504FA1 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.1% C 0.129 H 280.8°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).
Color values
| HEX | #504FA1 |
|---|---|
| RGB | rgb(80, 79, 161) |
| HSL | hsl(241, 34%, 47%) |
| HSV | hsv(241, 51%, 63%) |
| CMYK | cmyk(50.3%, 50.9%, 0%, 36.9%) |
| CIE-LAB | lab(37.61, 23.44, -44.52) |
| CIE-LCH | lch(37.61, 50.31, 297.77°) |
| OKLab | oklab(47.14% 0.0242 -0.1268) |
| OKLCH | oklch(47.14% 0.129 280.8) |
| XYZ | xyz(12.5353, 9.8700, 34.9559) |
| Luminance | 0.0987 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Twilight
#4E518B
ΔE00 4.38
Blueberry
#464196
ΔE00 4.46
Ocean Blue
#4F42B5
ΔE00 5.44
Darkslateblue
#483D8B
ΔE00 6.15
Iris
#6258C4
ΔE00 6.44
Dusk
#4E5481
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#504FA1 #A0A14F
analogous
#4F77A1 #504FA1 #794FA1
triadic
#504FA1 #A1504F #4FA150
tetradic
#504FA1 #A14F77 #A0A14F #4FA179
square
#504FA1 #A14F77 #A0A14F #4FA179
split-complementary
#504FA1 #A1794F #77A14F
monochromatic
#27274F #3C3B78 #504FA1 #7473BA #9D9CCE
Accessibility & contrast
On white
7.06
#504FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.97
#504FA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #504FA1
7.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##504FA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##504FA1 | 1.00 | 7.06 | 2.97 | 7.06 |
| #FFFFFF | 7.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#285CA4
Deuteranopia (green-blind)
#21569F
Tritanopia (blue-blind)
#316170
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #504fa1; /* rgb */ color: rgb(80, 79, 161); /* oklch */ color: oklch(47.1% 0.129 280.8);
Tailwind
colors: {
custom: {
50: '#8780bd',
500: '#504fa1',
950: '#000000',
},
}SCSS
$custom: #504fa1; $custom-light: #8780bd; $custom-dark: #000000;
JSON
{
"hex": "#504fa1",
"rgb": {
"r": 80,
"g": 79,
"b": 161
},
"hsl": {
"h": 240.732,
"s": 34.167,
"l": 47.059
},
"oklch": {
"l": 0.4714,
"c": 0.12908,
"h": 280.8
},
"luminance": 0.09871
}Semantic roles & 50–950 ramp
primary
#504FA1
secondary
#BBBB91
accent
#CA5EC9
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0A12
muted
#7D7C81