#504DC5#504DC5
#504DC5 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.5% C 0.182 H 278.5°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).
Color values
| HEX | #504DC5 |
|---|---|
| RGB | rgb(80, 77, 197) |
| HSL | hsl(242, 51%, 54%) |
| HSV | hsv(242, 61%, 77%) |
| CMYK | cmyk(59.4%, 60.9%, 0%, 22.7%) |
| CIE-LAB | lab(39.65, 36.40, -62.45) |
| CIE-LCH | lch(39.65, 72.29, 300.24°) |
| OKLab | oklab(49.47% 0.027 -0.1795) |
| OKLCH | oklch(49.47% 0.182 278.5) |
| XYZ | xyz(16.0370, 11.0433, 54.0990) |
| Luminance | 0.1104 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Ocean Blue
#4F42B5
ΔE00 3.87
Iris
#6258C4
ΔE00 4.11
Warm Blue
#4B57DB
ΔE00 4.35
Bluey Purple
#6241C7
ΔE00 4.63
Blue With A Hint Of Purple
#533CC6
ΔE00 4.70
Blue Blue
#2242C7
ΔE00 5.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#504DC5 #C2C54D
analogous
#4D86C5 #504DC5 #8C4DC5
triadic
#504DC5 #C5504D #4DC550
tetradic
#504DC5 #C54D86 #C2C54D #4DC58C
square
#504DC5 #C54D86 #C2C54D #4DC58C
split-complementary
#504DC5 #C58C4D #86C54D
monochromatic
#272572 #3734A0 #504DC5 #7D7BD4 #ABA9E3
Accessibility & contrast
On white
6.54
#504DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.21
#504DC5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #504DC5
6.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##504DC5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##504DC5 | 1.00 | 6.54 | 3.21 | 6.54 |
| #FFFFFF | 6.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C9
Deuteranopia (green-blind)
#0059C3
Tritanopia (blue-blind)
#006A81
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #504dc5; /* rgb */ color: rgb(80, 77, 197); /* oklch */ color: oklch(49.5% 0.182 278.5);
Tailwind
colors: {
custom: {
50: '#8c7fd7',
500: '#504dc5',
950: '#000000',
},
}SCSS
$custom: #504dc5; $custom-light: #8c7fd7; $custom-dark: #000000;
JSON
{
"hex": "#504dc5",
"rgb": {
"r": 80,
"g": 77,
"b": 197
},
"hsl": {
"h": 241.5,
"s": 50.847,
"l": 53.725
},
"oklch": {
"l": 0.49467,
"c": 0.18157,
"h": 278.5
},
"luminance": 0.11044
}Semantic roles & 50–950 ramp
primary
#504DC5
secondary
#CFD19D
accent
#DA4DD7
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83