#504C8A#504C8A
#504C8A is a mid, moderate blue. Relative luminance 0.087; OKLCH L 45.0% C 0.099 H 284.6°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).
Color values
| HEX | #504C8A |
|---|---|
| RGB | rgb(80, 76, 138) |
| HSL | hsl(244, 29%, 42%) |
| HSV | hsv(244, 45%, 54%) |
| CMYK | cmyk(42%, 44.9%, 0%, 45.9%) |
| CIE-LAB | lab(35.42, 18.12, -34.09) |
| CIE-LCH | lch(35.42, 38.61, 298.00°) |
| OKLab | oklab(45.04% 0.0251 -0.0962) |
| OKLCH | oklch(45.04% 0.099 284.6) |
| XYZ | xyz(10.4788, 8.7089, 25.1687) |
| Luminance | 0.0871 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Twilight
#4E518B
ΔE00 2.11
Dusk
#4E5481
ΔE00 4.32
Blueberry
#464196
ΔE00 5.07
Darkslateblue
#483D8B
ΔE00 5.08
Dusky Blue
#475F94
ΔE00 8.45
Ocean Blue
#4F42B5
ΔE00 8.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#504C8A #868A4C
analogous
#4C678A #504C8A #6F4C8A
triadic
#504C8A #8A504C #4C8A50
tetradic
#504C8A #8A4C67 #868A4C #4C8A6F
square
#504C8A #8A4C67 #868A4C #4C8A6F
split-complementary
#504C8A #8A6F4C #678A4C
monochromatic
#22213B #393663 #504C8A #6C68AC #928FC1
Accessibility & contrast
On white
7.66
#504C8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.74
#504C8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #504C8A
7.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##504C8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##504C8A | 1.00 | 7.66 | 2.74 | 7.66 |
| #FFFFFF | 7.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#35558C
Deuteranopia (green-blind)
#345189
Tritanopia (blue-blind)
#3F5864
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #504c8a; /* rgb */ color: rgb(80, 76, 138); /* oklch */ color: oklch(45.0% 0.099 284.6);
Tailwind
colors: {
custom: {
50: '#847eac',
500: '#504c8a',
950: '#000000',
},
}SCSS
$custom: #504c8a; $custom-light: #847eac; $custom-dark: #000000;
JSON
{
"hex": "#504c8a",
"rgb": {
"r": 80,
"g": 76,
"b": 138
},
"hsl": {
"h": 243.871,
"s": 28.972,
"l": 41.961
},
"oklch": {
"l": 0.45036,
"c": 0.09945,
"h": 284.6
},
"luminance": 0.08709
}Semantic roles & 50–950 ramp
primary
#504C8A
secondary
#ABAE84
accent
#C563BF
background
#F8F7FA
surface
#EFEEF4
border
#CAC9CE
text
#0B0910
muted
#7C7B7F