#504CB6#504CB6
#504CB6 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.1% C 0.163 H 280.0°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).
Color values
| HEX | #504CB6 |
|---|---|
| RGB | rgb(80, 76, 182) |
| HSL | hsl(242, 42%, 51%) |
| HSV | hsv(242, 58%, 71%) |
| CMYK | cmyk(56%, 58.2%, 0%, 28.6%) |
| CIE-LAB | lab(38.29, 32.14, -55.89) |
| CIE-LCH | lch(38.29, 64.47, 299.90°) |
| OKLab | oklab(48.11% 0.0284 -0.1603) |
| OKLCH | oklch(48.11% 0.163 280) |
| XYZ | xyz(14.3336, 10.2508, 45.4702) |
| Luminance | 0.1025 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Ocean Blue
#4F42B5
ΔE00 2.95
Iris
#6258C4
ΔE00 4.77
Blue With A Hint Of Purple
#533CC6
ΔE00 5.08
Bluey Purple
#6241C7
ΔE00 5.18
Blue Blue
#2242C7
ΔE00 5.62
Blueberry
#464196
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#504CB6 #B2B64C
analogous
#4C7DB6 #504CB6 #854CB6
triadic
#504CB6 #B6504C #4CB650
tetradic
#504CB6 #B64C7D #B2B64C #4CB685
square
#504CB6 #B64C7D #B2B64C #4CB685
split-complementary
#504CB6 #B6854C #7DB64C
monochromatic
#292760 #3C398C #504CB6 #7A77C8 #A5A3D9
Accessibility & contrast
On white
6.88
#504CB6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.05
#504CB6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #504CB6
6.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##504CB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##504CB6 | 1.00 | 6.88 | 3.05 | 6.88 |
| #FFFFFF | 6.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EBA
Deuteranopia (green-blind)
#0056B4
Tritanopia (blue-blind)
#1C6579
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #504cb6; /* rgb */ color: rgb(80, 76, 182); /* oklch */ color: oklch(48.1% 0.163 280.0);
Tailwind
colors: {
custom: {
50: '#8a7ecd',
500: '#504cb6',
950: '#000000',
},
}SCSS
$custom: #504cb6; $custom-light: #8a7ecd; $custom-dark: #000000;
JSON
{
"hex": "#504cb6",
"rgb": {
"r": 80,
"g": 76,
"b": 182
},
"hsl": {
"h": 242.264,
"s": 42.063,
"l": 50.588
},
"oklch": {
"l": 0.48107,
"c": 0.16276,
"h": 280
},
"luminance": 0.10252
}Semantic roles & 50–950 ramp
primary
#504CB6
secondary
#C5C697
accent
#D256CD
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0D0A13
muted
#7D7C82