#514A8A#514A8A
#514A8A is a dark, moderate blue. Relative luminance 0.085; OKLCH L 44.7% C 0.103 H 286.5°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).
Color values
| HEX | #514A8A |
|---|---|
| RGB | rgb(81, 74, 138) |
| HSL | hsl(247, 30%, 42%) |
| HSV | hsv(247, 46%, 54%) |
| CMYK | cmyk(41.3%, 46.4%, 0%, 45.9%) |
| CIE-LAB | lab(34.97, 19.68, -34.80) |
| CIE-LCH | lch(34.97, 39.98, 299.49°) |
| OKLab | oklab(44.72% 0.0291 -0.0983) |
| OKLCH | oklch(44.72% 0.103 286.5) |
| XYZ | xyz(10.4283, 8.4815, 25.1275) |
| Luminance | 0.0848 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Twilight
#4E518B
ΔE00 2.96
Darkslateblue
#483D8B
ΔE00 4.45
Blueberry
#464196
ΔE00 4.68
Dusk
#4E5481
ΔE00 5.09
Ocean Blue
#4F42B5
ΔE00 8.28
Royal Purple
#7851A9
ΔE00 9.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#514A8A #838A4A
analogous
#4A638A #514A8A #714A8A
triadic
#514A8A #8A514A #4A8A51
tetradic
#514A8A #8A4A63 #838A4A #4A8A71
square
#514A8A #8A4A63 #838A4A #4A8A71
split-complementary
#514A8A #8A714A #638A4A
monochromatic
#221F3A #3A3562 #514A8A #6D65AC #928DC2
Accessibility & contrast
On white
7.79
#514A8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.70
#514A8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #514A8A
7.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##514A8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##514A8A | 1.00 | 7.79 | 2.70 | 7.79 |
| #FFFFFF | 7.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#33548C
Deuteranopia (green-blind)
#315089
Tritanopia (blue-blind)
#415763
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #514a8a; /* rgb */ color: rgb(81, 74, 138); /* oklch */ color: oklch(44.7% 0.103 286.5);
Tailwind
colors: {
custom: {
50: '#857cac',
500: '#514a8a',
950: '#000000',
},
}SCSS
$custom: #514a8a; $custom-light: #857cac; $custom-dark: #000000;
JSON
{
"hex": "#514a8a",
"rgb": {
"r": 81,
"g": 74,
"b": 138
},
"hsl": {
"h": 246.563,
"s": 30.189,
"l": 41.569
},
"oklch": {
"l": 0.44715,
"c": 0.10251,
"h": 286.5
},
"luminance": 0.08482
}Semantic roles & 50–950 ramp
primary
#514A8A
secondary
#A9AE82
accent
#C661BB
background
#F8F7FA
surface
#EFEEF4
border
#CAC9CE
text
#0B0910
muted
#7C7B7F