#514A8A#514A8A

#514A8A is a dark, moderate blue. Relative luminance 0.085; OKLCH L 44.7% C 0.103 H 286.5°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#514A8A
RGBrgb(81, 74, 138)
HSLhsl(247, 30%, 42%)
HSVhsv(247, 46%, 54%)
CMYKcmyk(41.3%, 46.4%, 0%, 45.9%)
CIE-LABlab(34.97, 19.68, -34.80)
CIE-LCHlch(34.97, 39.98, 299.49°)
OKLaboklab(44.72% 0.0291 -0.0983)
OKLCHoklch(44.72% 0.103 286.5)
XYZxyz(10.4283, 8.4815, 25.1275)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#514A8A #838A4A
analogous
#4A638A #514A8A #714A8A
triadic
#514A8A #8A514A #4A8A51
tetradic
#514A8A #8A4A63 #838A4A #4A8A71
square
#514A8A #8A4A63 #838A4A #4A8A71
split-complementary
#514A8A #8A714A #638A4A
monochromatic
#221F3A #3A3562 #514A8A #6D65AC #928DC2

Accessibility & contrast

On white

7.79
#514A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#514A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #514A8A
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##514A8A#FFFFFF#000000##FFFFFF
##514A8A1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33548C
Deuteranopia (green-blind)
#315089
Tritanopia (blue-blind)
#415763
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #514a8a;
/* rgb */ color: rgb(81, 74, 138);
/* oklch */ color: oklch(44.7% 0.103 286.5);
Tailwind
colors: {
  custom: {
    50: '#857cac',
    500: '#514a8a',
    950: '#000000',
  },
}
SCSS
$custom: #514a8a;
$custom-light: #857cac;
$custom-dark: #000000;
JSON
{
  "hex": "#514a8a",
  "rgb": {
    "r": 81,
    "g": 74,
    "b": 138
  },
  "hsl": {
    "h": 246.563,
    "s": 30.189,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44715,
    "c": 0.10251,
    "h": 286.5
  },
  "luminance": 0.08482
}

Semantic roles & 50–950 ramp

primary
#514A8A
secondary
#A9AE82
accent
#C661BB
background
#F8F7FA
surface
#EFEEF4
border
#CAC9CE
text
#0B0910
muted
#7C7B7F

Preview Lab

Preview with #514A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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