#514A97#514A97

#514A97 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.6% C 0.122 H 284.6°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#514A97
RGBrgb(81, 74, 151)
HSLhsl(245, 34%, 44%)
HSVhsv(245, 51%, 59%)
CMYKcmyk(46.4%, 51%, 0%, 40.8%)
CIE-LABlab(35.75, 23.69, -41.46)
CIE-LCHlch(35.75, 47.76, 299.75°)
OKLaboklab(45.56% 0.0307 -0.1178)
OKLCHoklch(45.56% 0.122 284.6)
XYZxyz(11.4264, 8.8808, 30.3842)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#514A97 #90974A
analogous
#4A6A97 #514A97 #784A97
triadic
#514A97 #97514A #4A9751
tetradic
#514A97 #974A6A #90974A #4A9778
square
#514A97 #974A6A #90974A #4A9778
split-complementary
#514A97 #97784A #6A974A
monochromatic
#252245 #3B366E #514A97 #7069B5 #9792CA

Accessibility & contrast

On white

7.56
#514A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#514A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #514A97
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##514A97#FFFFFF#000000##FFFFFF
##514A971.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28569A
Deuteranopia (green-blind)
#255295
Tritanopia (blue-blind)
#3A5A69
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #514a97;
/* rgb */ color: rgb(81, 74, 151);
/* oklch */ color: oklch(45.6% 0.122 284.6);
Tailwind
colors: {
  custom: {
    50: '#867cb6',
    500: '#514a97',
    950: '#000000',
  },
}
SCSS
$custom: #514a97;
$custom-light: #867cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#514a97",
  "rgb": {
    "r": 81,
    "g": 74,
    "b": 151
  },
  "hsl": {
    "h": 245.455,
    "s": 34.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45563,
    "c": 0.12176,
    "h": 284.6
  },
  "luminance": 0.08881
}

Semantic roles & 50–950 ramp

primary
#514A97
secondary
#B1B687
accent
#CA5DC0
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0B0911
muted
#7C7B80

Preview Lab

Preview with #514A97

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

Preview Lab → · Contrast checker → · Palette generator →

#514A97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva