#514B8D#514B8D

#514B8D is a mid, moderate blue. Relative luminance 0.087; OKLCH L 45.1% C 0.105 H 285.5°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#514B8D
RGBrgb(81, 75, 141)
HSLhsl(245, 31%, 42%)
HSVhsv(245, 47%, 55%)
CMYKcmyk(42.6%, 46.8%, 0%, 44.7%)
CIE-LABlab(35.41, 19.96, -35.94)
CIE-LCHlch(35.41, 41.11, 299.05°)
OKLaboklab(45.11% 0.0282 -0.1016)
OKLCHoklch(45.11% 0.105 285.5)
XYZxyz(10.7158, 8.7042, 26.3096)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#514B8D #878D4B
analogous
#4B668D #514B8D #724B8D
triadic
#514B8D #8D514B #4B8D51
tetradic
#514B8D #8D4B66 #878D4B #4B8D72
square
#514B8D #8D4B66 #878D4B #4B8D72
split-complementary
#514B8D #8D724B #668D4B
monochromatic
#23203D #3A3665 #514B8D #6E67AE #948FC3

Accessibility & contrast

On white

7.66
#514B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#514B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #514B8D
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##514B8D#FFFFFF#000000##FFFFFF
##514B8D1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32558F
Deuteranopia (green-blind)
#30518B
Tritanopia (blue-blind)
#3F5865
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #514b8d;
/* rgb */ color: rgb(81, 75, 141);
/* oklch */ color: oklch(45.1% 0.105 285.5);
Tailwind
colors: {
  custom: {
    50: '#857daf',
    500: '#514b8d',
    950: '#000000',
  },
}
SCSS
$custom: #514b8d;
$custom-light: #857daf;
$custom-dark: #000000;
JSON
{
  "hex": "#514b8d",
  "rgb": {
    "r": 81,
    "g": 75,
    "b": 141
  },
  "hsl": {
    "h": 245.455,
    "s": 30.556,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45106,
    "c": 0.10544,
    "h": 285.5
  },
  "luminance": 0.08705
}

Semantic roles & 50–950 ramp

primary
#514B8D
secondary
#ACB084
accent
#C761BE
background
#F8F7FA
surface
#EFEEF4
border
#CAC9CE
text
#0B0910
muted
#7C7B7F

Preview Lab

Preview with #514B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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