#514796#514796

#514796 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.9% C 0.125 H 286.0°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#514796
RGBrgb(81, 71, 150)
HSLhsl(248, 36%, 43%)
HSVhsv(248, 53%, 59%)
CMYKcmyk(46%, 52.7%, 0%, 41.2%)
CIE-LABlab(34.92, 25.29, -42.20)
CIE-LCHlch(34.92, 49.20, 300.94°)
OKLaboklab(44.92% 0.0344 -0.12)
OKLCHoklch(44.92% 0.125 286)
XYZxyz(11.1500, 8.4574, 29.8932)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#514796 #8C9647
analogous
#476496 #514796 #784796
triadic
#514796 #965147 #479651
tetradic
#514796 #964764 #8C9647 #479678
square
#514796 #964764 #8C9647 #479678
split-complementary
#514796 #967847 #649647
monochromatic
#242043 #3B336C #514796 #6F64B6 #958EC9

Accessibility & contrast

On white

7.80
#514796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#514796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #514796
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##514796#FFFFFF#000000##FFFFFF
##5147961.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225499
Deuteranopia (green-blind)
#215094
Tritanopia (blue-blind)
#3B5867
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #514796;
/* rgb */ color: rgb(81, 71, 150);
/* oklch */ color: oklch(44.9% 0.125 286.0);
Tailwind
colors: {
  custom: {
    50: '#867ab5',
    500: '#514796',
    950: '#000000',
  },
}
SCSS
$custom: #514796;
$custom-light: #867ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#514796",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 150
  },
  "hsl": {
    "h": 247.595,
    "s": 35.747,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44917,
    "c": 0.12484,
    "h": 286
  },
  "luminance": 0.08458
}

Semantic roles & 50–950 ramp

primary
#514796
secondary
#AFB584
accent
#CC5CBE
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0911
muted
#7D7B80

Preview Lab

Preview with #514796

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

Preview Lab → · Contrast checker → · Palette generator →

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