#514D8A#514D8A

#514D8A is a mid, moderate blue. Relative luminance 0.089; OKLCH L 45.3% C 0.098 H 284.8°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#514D8A
RGBrgb(81, 77, 138)
HSLhsl(244, 28%, 42%)
HSVhsv(244, 44%, 54%)
CMYKcmyk(41.3%, 44.2%, 0%, 45.9%)
CIE-LABlab(35.77, 17.76, -33.52)
CIE-LCHlch(35.77, 37.93, 297.91°)
OKLaboklab(45.33% 0.0249 -0.0945)
OKLCHoklch(45.33% 0.098 284.8)
XYZxyz(10.6334, 8.8917, 25.1958)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#514D8A #868A4D
analogous
#4D688A #514D8A #6F4D8A
triadic
#514D8A #8A514D #4D8A51
tetradic
#514D8A #8A4D68 #868A4D #4D8A6F
square
#514D8A #8A4D68 #868A4D #4D8A6F
split-complementary
#514D8A #8A6F4D #688A4D
monochromatic
#23213B #3A3763 #514D8A #6D69AB #9390C1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##514D8A#FFFFFF#000000##FFFFFF
##514D8A1.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)
#37568C
Deuteranopia (green-blind)
#355289
Tritanopia (blue-blind)
#415965
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #514d8a;
/* rgb */ color: rgb(81, 77, 138);
/* oklch */ color: oklch(45.3% 0.098 284.8);
Tailwind
colors: {
  custom: {
    50: '#857eac',
    500: '#514d8a',
    950: '#000000',
  },
}
SCSS
$custom: #514d8a;
$custom-light: #857eac;
$custom-dark: #000000;
JSON
{
  "hex": "#514d8a",
  "rgb": {
    "r": 81,
    "g": 77,
    "b": 138
  },
  "hsl": {
    "h": 243.934,
    "s": 28.372,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45328,
    "c": 0.09777,
    "h": 284.8
  },
  "luminance": 0.08892
}

Semantic roles & 50–950 ramp

primary
#514D8A
secondary
#ABAE85
accent
#C563BE
background
#F8F7FA
surface
#EFEEF4
border
#CAC9CE
text
#0B0A10
muted
#7C7C7F

Preview Lab

Preview with #514D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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