#514C8A#514C8A

#514C8A is a mid, moderate blue. Relative luminance 0.088; OKLCH L 45.1% C 0.099 H 285.4°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#514C8A
RGBrgb(81, 76, 138)
HSLhsl(245, 29%, 42%)
HSVhsv(245, 45%, 54%)
CMYKcmyk(41.3%, 44.9%, 0%, 45.9%)
CIE-LABlab(35.50, 18.40, -33.95)
CIE-LCHlch(35.50, 38.61, 298.46°)
OKLaboklab(45.12% 0.0263 -0.0958)
OKLCHoklch(45.12% 0.099 285.4)
XYZxyz(10.5639, 8.7528, 25.1727)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#514C8A #858A4C
analogous
#4C668A #514C8A #704C8A
triadic
#514C8A #8A514C #4C8A51
tetradic
#514C8A #8A4C66 #858A4C #4C8A70
square
#514C8A #8A4C66 #858A4C #4C8A70
split-complementary
#514C8A #8A704C #668A4C
monochromatic
#23213B #3A3663 #514C8A #6D68AC #938FC1

Accessibility & contrast

On white

7.63
#514C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#514C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #514C8A
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##514C8A#FFFFFF#000000##FFFFFF
##514C8A1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36558C
Deuteranopia (green-blind)
#345289
Tritanopia (blue-blind)
#415864
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #514c8a;
/* rgb */ color: rgb(81, 76, 138);
/* oklch */ color: oklch(45.1% 0.099 285.4);
Tailwind
colors: {
  custom: {
    50: '#857eac',
    500: '#514c8a',
    950: '#000000',
  },
}
SCSS
$custom: #514c8a;
$custom-light: #857eac;
$custom-dark: #000000;
JSON
{
  "hex": "#514c8a",
  "rgb": {
    "r": 81,
    "g": 76,
    "b": 138
  },
  "hsl": {
    "h": 244.839,
    "s": 28.972,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45123,
    "c": 0.09935,
    "h": 285.4
  },
  "luminance": 0.08753
}

Semantic roles & 50–950 ramp

primary
#514C8A
secondary
#AAAE84
accent
#C563BD
background
#F8F7FA
surface
#EFEEF4
border
#CAC9CE
text
#0B0910
muted
#7C7B7F

Preview Lab

Preview with #514C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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