#514798#514798
#514798 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.1% C 0.128 H 285.7°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).
Color values
| HEX | #514798 |
|---|---|
| RGB | rgb(81, 71, 152) |
| HSL | hsl(247, 36%, 44%) |
| HSV | hsv(247, 53%, 60%) |
| CMYK | cmyk(46.7%, 53.3%, 0%, 40.4%) |
| CIE-LAB | lab(35.05, 25.91, -43.20) |
| CIE-LCH | lch(35.05, 50.38, 300.96°) |
| OKLab | oklab(45.06% 0.0346 -0.1229) |
| OKLCH | oklch(45.06% 0.128 285.7) |
| XYZ | xyz(11.3124, 8.5223, 30.7486) |
| Luminance | 0.0852 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 2.48
Darkslateblue
#483D8B
ΔE00 3.45
Twilight
#4E518B
ΔE00 5.00
Ocean Blue
#4F42B5
ΔE00 5.16
Dusk
#4E5481
ΔE00 7.54
Rebeccapurple
#663399
ΔE00 7.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#514798 #8E9847
analogous
#476598 #514798 #794798
triadic
#514798 #985147 #479851
tetradic
#514798 #984765 #8E9847 #479879
square
#514798 #984765 #8E9847 #479879
split-complementary
#514798 #987947 #659847
monochromatic
#252045 #3B346E #514798 #6F65B7 #968FCB
Accessibility & contrast
On white
7.76
#514798 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.70
#514798 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #514798
7.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##514798 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##514798 | 1.00 | 7.76 | 2.70 | 7.76 |
| #FFFFFF | 7.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#20559B
Deuteranopia (green-blind)
#1E5096
Tritanopia (blue-blind)
#3A5868
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #514798; /* rgb */ color: rgb(81, 71, 152); /* oklch */ color: oklch(45.1% 0.128 285.7);
Tailwind
colors: {
custom: {
50: '#877ab7',
500: '#514798',
950: '#000000',
},
}SCSS
$custom: #514798; $custom-light: #877ab7; $custom-dark: #000000;
JSON
{
"hex": "#514798",
"rgb": {
"r": 81,
"g": 71,
"b": 152
},
"hsl": {
"h": 247.407,
"s": 36.323,
"l": 43.725
},
"oklch": {
"l": 0.45056,
"c": 0.12771,
"h": 285.7
},
"luminance": 0.08523
}Semantic roles & 50–950 ramp
primary
#514798
secondary
#B0B685
accent
#CC5BBE
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0911
muted
#7D7B80