#504AA4#504AA4
#504AA4 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.4% C 0.141 H 282.4°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).
Color values
| HEX | #504AA4 |
|---|---|
| RGB | rgb(80, 74, 164) |
| HSL | hsl(244, 38%, 47%) |
| HSV | hsv(244, 55%, 64%) |
| CMYK | cmyk(51.2%, 54.9%, 0%, 35.7%) |
| CIE-LAB | lab(36.52, 27.58, -48.06) |
| CIE-LCH | lch(36.52, 55.41, 299.85°) |
| OKLab | oklab(46.39% 0.0303 -0.1372) |
| OKLCH | oklch(46.39% 0.141 282.4) |
| XYZ | xyz(12.4559, 9.2827, 36.2502) |
| Luminance | 0.0928 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.39
Ocean Blue
#4F42B5
ΔE00 3.77
Darkslateblue
#483D8B
ΔE00 5.25
Twilight
#4E518B
ΔE00 5.73
Blue With A Hint Of Purple
#533CC6
ΔE00 6.58
Iris
#6258C4
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#504AA4 #9EA44A
analogous
#4A71A4 #504AA4 #7D4AA4
triadic
#504AA4 #A4504A #4AA450
tetradic
#504AA4 #A44A71 #9EA44A #4AA47D
square
#504AA4 #A44A71 #9EA44A #4AA47D
split-complementary
#504AA4 #A47D4A #71A44A
monochromatic
#272450 #3B377A #504AA4 #736EBD #9C98D0
Accessibility & contrast
On white
7.35
#504AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.86
#504AA4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #504AA4
7.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##504AA4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##504AA4 | 1.00 | 7.35 | 2.86 | 7.35 |
| #FFFFFF | 7.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1659A7
Deuteranopia (green-blind)
#0C53A2
Tritanopia (blue-blind)
#305E70
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #504aa4; /* rgb */ color: rgb(80, 74, 164); /* oklch */ color: oklch(46.4% 0.141 282.4);
Tailwind
colors: {
custom: {
50: '#877cc0',
500: '#504aa4',
950: '#000000',
},
}SCSS
$custom: #504aa4; $custom-light: #877cc0; $custom-dark: #000000;
JSON
{
"hex": "#504aa4",
"rgb": {
"r": 80,
"g": 74,
"b": 164
},
"hsl": {
"h": 244,
"s": 37.815,
"l": 46.667
},
"oklch": {
"l": 0.46392,
"c": 0.14054,
"h": 282.4
},
"luminance": 0.09283
}Semantic roles & 50–950 ramp
primary
#504AA4
secondary
#BABD8D
accent
#CE5AC6
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0912
muted
#7D7B81