#514791#514791
#514791 is a dark, moderate blue. Relative luminance 0.083; OKLCH L 44.6% C 0.118 H 286.8°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).
Color values
| HEX | #514791 |
|---|---|
| RGB | rgb(81, 71, 145) |
| HSL | hsl(248, 34%, 42%) |
| HSV | hsv(248, 51%, 57%) |
| CMYK | cmyk(44.1%, 51%, 0%, 43.1%) |
| CIE-LAB | lab(34.60, 23.75, -39.67) |
| CIE-LCH | lch(34.60, 46.23, 300.91°) |
| OKLab | oklab(44.58% 0.034 -0.1126) |
| OKLCH | oklch(44.58% 0.118 286.8) |
| XYZ | xyz(10.7560, 8.2997, 27.8179) |
| Luminance | 0.0830 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.04
Darkslateblue
#483D8B
ΔE00 3.17
Twilight
#4E518B
ΔE00 4.34
Ocean Blue
#4F42B5
ΔE00 6.46
Dusk
#4E5481
ΔE00 6.76
Rebeccapurple
#663399
ΔE00 8.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#514791 #879147
analogous
#476291 #514791 #764791
triadic
#514791 #915147 #479151
tetradic
#514791 #914762 #879147 #479176
square
#514791 #914762 #879147 #479176
split-complementary
#514791 #917647 #629147
monochromatic
#231F3F #3A3368 #514791 #6E63B2 #948CC7
Accessibility & contrast
On white
7.89
#514791 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.66
#514791 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #514791
7.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##514791 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##514791 | 1.00 | 7.89 | 2.66 | 7.89 |
| #FFFFFF | 7.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#285394
Deuteranopia (green-blind)
#274F8F
Tritanopia (blue-blind)
#3E5665
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #514791; /* rgb */ color: rgb(81, 71, 145); /* oklch */ color: oklch(44.6% 0.118 286.8);
Tailwind
colors: {
custom: {
50: '#867ab2',
500: '#514791',
950: '#000000',
},
}SCSS
$custom: #514791; $custom-light: #867ab2; $custom-dark: #000000;
JSON
{
"hex": "#514791",
"rgb": {
"r": 81,
"g": 71,
"b": 145
},
"hsl": {
"h": 248.108,
"s": 34.259,
"l": 42.353
},
"oklch": {
"l": 0.44576,
"c": 0.11758,
"h": 286.8
},
"luminance": 0.083
}Semantic roles & 50–950 ramp
primary
#514791
secondary
#ACB282
accent
#CA5DBC
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0B0911
muted
#7C7B80