#504AB2#504AB2
#504AB2 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.4% C 0.160 H 281.0°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).
Color values
| HEX | #504AB2 |
|---|---|
| RGB | rgb(80, 74, 178) |
| HSL | hsl(243, 41%, 49%) |
| HSV | hsv(243, 58%, 70%) |
| CMYK | cmyk(55.1%, 58.4%, 0%, 30.2%) |
| CIE-LAB | lab(37.51, 32.08, -54.79) |
| CIE-LCH | lch(37.51, 63.49, 300.35°) |
| OKLab | oklab(47.44% 0.0305 -0.157) |
| OKLCH | oklch(47.44% 0.16 281) |
| XYZ | xyz(13.7904, 9.8165, 43.2790) |
| Luminance | 0.0982 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Ocean Blue
#4F42B5
ΔE00 2.43
Blue With A Hint Of Purple
#533CC6
ΔE00 4.90
Blueberry
#464196
ΔE00 4.96
Bluey Purple
#6241C7
ΔE00 5.14
Iris
#6258C4
ΔE00 5.40
Blue Blue
#2242C7
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#504AB2 #ACB24A
analogous
#4A78B2 #504AB2 #844AB2
triadic
#504AB2 #B2504A #4AB250
tetradic
#504AB2 #B24A78 #ACB24A #4AB284
square
#504AB2 #B24A78 #ACB24A #4AB284
split-complementary
#504AB2 #B2844A #78B24A
monochromatic
#29265C #3D3887 #504AB2 #7974C5 #A29FD7
Accessibility & contrast
On white
7.09
#504AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.96
#504AB2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #504AB2
7.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##504AB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##504AB2 | 1.00 | 7.09 | 2.96 | 7.09 |
| #FFFFFF | 7.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#226277
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #504ab2; /* rgb */ color: rgb(80, 74, 178); /* oklch */ color: oklch(47.4% 0.160 281.0);
Tailwind
colors: {
custom: {
50: '#8a7dca',
500: '#504ab2',
950: '#000000',
},
}SCSS
$custom: #504ab2; $custom-light: #8a7dca; $custom-dark: #000000;
JSON
{
"hex": "#504ab2",
"rgb": {
"r": 80,
"g": 74,
"b": 178
},
"hsl": {
"h": 243.462,
"s": 41.27,
"l": 49.412
},
"oklch": {
"l": 0.47439,
"c": 0.15997,
"h": 281
},
"luminance": 0.09817
}Semantic roles & 50–950 ramp
primary
#504AB2
secondary
#C1C494
accent
#D157CA
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0913
muted
#7D7B82