#504A8A#504A8A
#504A8A is a dark, moderate blue. Relative luminance 0.084; OKLCH L 44.6% C 0.103 H 285.7°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).
Color values
| HEX | #504A8A |
|---|---|
| RGB | rgb(80, 74, 138) |
| HSL | hsl(246, 30%, 42%) |
| HSV | hsv(246, 46%, 54%) |
| CMYK | cmyk(42%, 46.4%, 0%, 45.9%) |
| CIE-LAB | lab(34.88, 19.41, -34.95) |
| CIE-LCH | lch(34.88, 39.98, 299.05°) |
| OKLab | oklab(44.63% 0.0278 -0.0988) |
| OKLCH | oklch(44.63% 0.103 285.7) |
| XYZ | xyz(10.3432, 8.4376, 25.1235) |
| Luminance | 0.0844 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Twilight
#4E518B
ΔE00 2.82
Darkslateblue
#483D8B
ΔE00 4.41
Blueberry
#464196
ΔE00 4.58
Dusk
#4E5481
ΔE00 4.99
Ocean Blue
#4F42B5
ΔE00 8.24
Dusky Blue
#475F94
ΔE00 9.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#504A8A #848A4A
analogous
#4A648A #504A8A #704A8A
triadic
#504A8A #8A504A #4A8A50
tetradic
#504A8A #8A4A64 #848A4A #4A8A70
square
#504A8A #8A4A64 #848A4A #4A8A70
split-complementary
#504A8A #8A704A #648A4A
monochromatic
#221F3A #393562 #504A8A #6C65AC #928DC2
Accessibility & contrast
On white
7.81
#504A8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.69
#504A8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #504A8A
7.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##504A8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##504A8A | 1.00 | 7.81 | 2.69 | 7.81 |
| #FFFFFF | 7.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#32548C
Deuteranopia (green-blind)
#315089
Tritanopia (blue-blind)
#3F5763
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #504a8a; /* rgb */ color: rgb(80, 74, 138); /* oklch */ color: oklch(44.6% 0.103 285.7);
Tailwind
colors: {
custom: {
50: '#847cac',
500: '#504a8a',
950: '#000000',
},
}SCSS
$custom: #504a8a; $custom-light: #847cac; $custom-dark: #000000;
JSON
{
"hex": "#504a8a",
"rgb": {
"r": 80,
"g": 74,
"b": 138
},
"hsl": {
"h": 245.625,
"s": 30.189,
"l": 41.569
},
"oklch": {
"l": 0.44627,
"c": 0.1026,
"h": 285.7
},
"luminance": 0.08438
}Semantic roles & 50–950 ramp
primary
#504A8A
secondary
#AAAE82
accent
#C661BD
background
#F8F7FA
surface
#EFEEF4
border
#CAC9CE
text
#0B0910
muted
#7C7B7F