#504CB5#504CB5
#504CB5 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 48.0% C 0.161 H 280.1°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).
Color values
| HEX | #504CB5 |
|---|---|
| RGB | rgb(80, 76, 181) |
| HSL | hsl(242, 42%, 50%) |
| HSV | hsv(242, 58%, 71%) |
| CMYK | cmyk(55.8%, 58%, 0%, 29%) |
| CIE-LAB | lab(38.22, 31.81, -55.42) |
| CIE-LCH | lch(38.22, 63.90, 299.86°) |
| OKLab | oklab(48.03% 0.0284 -0.1589) |
| OKLCH | oklch(48.03% 0.161 280.1) |
| XYZ | xyz(14.2306, 10.2096, 44.9279) |
| Luminance | 0.1021 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Ocean Blue
#4F42B5
ΔE00 2.96
Iris
#6258C4
ΔE00 4.83
Blue With A Hint Of Purple
#533CC6
ΔE00 5.16
Bluey Purple
#6241C7
ΔE00 5.26
Blueberry
#464196
ΔE00 5.59
Blue Blue
#2242C7
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#504CB5 #B1B54C
analogous
#4C7CB5 #504CB5 #854CB5
triadic
#504CB5 #B5504C #4CB550
tetradic
#504CB5 #B54C7C #B1B54C #4CB585
square
#504CB5 #B54C7C #B1B54C #4CB585
split-complementary
#504CB5 #B5854C #7CB54C
monochromatic
#29275F #3C398B #504CB5 #7A77C7 #A5A3D9
Accessibility & contrast
On white
6.90
#504CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.04
#504CB5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #504CB5
6.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##504CB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##504CB5 | 1.00 | 6.90 | 3.04 | 6.90 |
| #FFFFFF | 6.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EB9
Deuteranopia (green-blind)
#0056B3
Tritanopia (blue-blind)
#1D6579
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #504cb5; /* rgb */ color: rgb(80, 76, 181); /* oklch */ color: oklch(48.0% 0.161 280.1);
Tailwind
colors: {
custom: {
50: '#8a7ecc',
500: '#504cb5',
950: '#000000',
},
}SCSS
$custom: #504cb5; $custom-light: #8a7ecc; $custom-dark: #000000;
JSON
{
"hex": "#504cb5",
"rgb": {
"r": 80,
"g": 76,
"b": 181
},
"hsl": {
"h": 242.286,
"s": 41.502,
"l": 50.392
},
"oklch": {
"l": 0.4803,
"c": 0.16139,
"h": 280.1
},
"luminance": 0.10211
}Semantic roles & 50–950 ramp
primary
#504CB5
secondary
#C4C697
accent
#D156CD
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0D0A13
muted
#7D7C82