#514997#514997

#514997 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.4% C 0.123 H 285.0°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#514997
RGBrgb(81, 73, 151)
HSLhsl(246, 35%, 44%)
HSVhsv(246, 52%, 59%)
CMYKcmyk(46.4%, 51.7%, 0%, 40.8%)
CIE-LABlab(35.50, 24.33, -41.88)
CIE-LCHlch(35.50, 48.43, 300.16°)
OKLaboklab(45.37% 0.032 -0.119)
OKLCHoklch(45.37% 0.123 285)
XYZxyz(11.3602, 8.7483, 30.3622)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#514997 #8F9749
analogous
#496897 #514997 #784997
triadic
#514997 #975149 #499751
tetradic
#514997 #974968 #8F9749 #499778
square
#514997 #974968 #8F9749 #499778
split-complementary
#514997 #977849 #689749
monochromatic
#252144 #3B356E #514997 #6F67B6 #9791CA

Accessibility & contrast

On white

7.64
#514997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#514997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #514997
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##514997#FFFFFF#000000##FFFFFF
##5149971.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26569A
Deuteranopia (green-blind)
#235195
Tritanopia (blue-blind)
#3A5A69
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #514997;
/* rgb */ color: rgb(81, 73, 151);
/* oklch */ color: oklch(45.4% 0.123 285.0);
Tailwind
colors: {
  custom: {
    50: '#867cb6',
    500: '#514997',
    950: '#000000',
  },
}
SCSS
$custom: #514997;
$custom-light: #867cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#514997",
  "rgb": {
    "r": 81,
    "g": 73,
    "b": 151
  },
  "hsl": {
    "h": 246.154,
    "s": 34.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.4537,
    "c": 0.12327,
    "h": 285
  },
  "luminance": 0.08749
}

Semantic roles & 50–950 ramp

primary
#514997
secondary
#B1B686
accent
#CB5DC0
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0C0911
muted
#7D7B80

Preview Lab

Preview with #514997

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

Preview Lab → · Contrast checker → · Palette generator →

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