#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
RGBrgb(81, 71, 152)
HSLhsl(247, 36%, 44%)
HSVhsv(247, 53%, 60%)
CMYKcmyk(46.7%, 53.3%, 0%, 40.4%)
CIE-LABlab(35.05, 25.91, -43.20)
CIE-LCHlch(35.05, 50.38, 300.96°)
OKLaboklab(45.06% 0.0346 -0.1229)
OKLCHoklch(45.06% 0.128 285.7)
XYZxyz(11.3124, 8.5223, 30.7486)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

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
##5147981.007.762.707.76
#FFFFFF7.761.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.761.0021.001.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

Preview Lab

Preview with #514798

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#514798 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva