#504C8B#504C8B
#504C8B is a mid, moderate blue. Relative luminance 0.087; OKLCH L 45.1% C 0.101 H 284.5°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).
Color values
| HEX | #504C8B |
|---|---|
| RGB | rgb(80, 76, 139) |
| HSL | hsl(244, 29%, 42%) |
| HSV | hsv(244, 45%, 55%) |
| CMYK | cmyk(42.4%, 45.3%, 0%, 45.5%) |
| CIE-LAB | lab(35.47, 18.43, -34.61) |
| CIE-LCH | lch(35.47, 39.21, 298.03°) |
| OKLab | oklab(45.1% 0.0252 -0.0978) |
| OKLCH | oklch(45.1% 0.101 284.5) |
| XYZ | xyz(10.5516, 8.7380, 25.5517) |
| Luminance | 0.0874 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Twilight
#4E518B
ΔE00 2.13
Dusk
#4E5481
ΔE00 4.44
Blueberry
#464196
ΔE00 4.91
Darkslateblue
#483D8B
ΔE00 5.00
Ocean Blue
#4F42B5
ΔE00 8.37
Dusky Blue
#475F94
ΔE00 8.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#504C8B #878B4C
analogous
#4C678B #504C8B #704C8B
triadic
#504C8B #8B504C #4C8B50
tetradic
#504C8B #8B4C67 #878B4C #4C8B70
square
#504C8B #8B4C67 #878B4C #4C8B70
split-complementary
#504C8B #8B704C #678B4C
monochromatic
#22213C #393663 #504C8B #6C68AC #938FC2
Accessibility & contrast
On white
7.64
#504C8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.75
#504C8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #504C8B
7.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##504C8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##504C8B | 1.00 | 7.64 | 2.75 | 7.64 |
| #FFFFFF | 7.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#35558D
Deuteranopia (green-blind)
#33518A
Tritanopia (blue-blind)
#3F5965
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #504c8b; /* rgb */ color: rgb(80, 76, 139); /* oklch */ color: oklch(45.1% 0.101 284.5);
Tailwind
colors: {
custom: {
50: '#847ead',
500: '#504c8b',
950: '#000000',
},
}SCSS
$custom: #504c8b; $custom-light: #847ead; $custom-dark: #000000;
JSON
{
"hex": "#504c8b",
"rgb": {
"r": 80,
"g": 76,
"b": 139
},
"hsl": {
"h": 243.81,
"s": 29.302,
"l": 42.157
},
"oklch": {
"l": 0.45098,
"c": 0.10097,
"h": 284.5
},
"luminance": 0.08738
}Semantic roles & 50–950 ramp
primary
#504C8B
secondary
#ACAE85
accent
#C662BF
background
#F8F7FA
surface
#EFEEF4
border
#CAC9CE
text
#0B0910
muted
#7C7B7F