#514EA4#514EA4

#514EA4 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.2% C 0.135 H 281.5°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#514EA4
RGBrgb(81, 78, 164)
HSLhsl(242, 36%, 47%)
HSVhsv(242, 52%, 64%)
CMYKcmyk(50.6%, 52.4%, 0%, 35.7%)
CIE-LABlab(37.62, 25.27, -46.29)
CIE-LCHlch(37.62, 52.73, 298.63°)
OKLaboklab(47.23% 0.0268 -0.132)
OKLCHoklch(47.23% 0.135 281.5)
XYZxyz(12.8165, 9.8778, 36.3460)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#514EA4 #A1A44E
analogous
#4E76A4 #514EA4 #7C4EA4
triadic
#514EA4 #A4514E #4EA451
tetradic
#514EA4 #A44E76 #A1A44E #4EA47C
square
#514EA4 #A44E76 #A1A44E #4EA47C
split-complementary
#514EA4 #A47C4E #76A44E
monochromatic
#282751 #3D3A7B #514EA4 #7573BC #9E9CD0

Accessibility & contrast

On white

7.06
#514EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#514EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #514EA4
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##514EA4#FFFFFF#000000##FFFFFF
##514EA41.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235CA7
Deuteranopia (green-blind)
#1B55A2
Tritanopia (blue-blind)
#316171
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #514ea4;
/* rgb */ color: rgb(81, 78, 164);
/* oklch */ color: oklch(47.2% 0.135 281.5);
Tailwind
colors: {
  custom: {
    50: '#887fbf',
    500: '#514ea4',
    950: '#000000',
  },
}
SCSS
$custom: #514ea4;
$custom-light: #887fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#514ea4",
  "rgb": {
    "r": 81,
    "g": 78,
    "b": 164
  },
  "hsl": {
    "h": 242.093,
    "s": 35.537,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47233,
    "c": 0.13467,
    "h": 281.5
  },
  "luminance": 0.09878
}

Semantic roles & 50–950 ramp

primary
#514EA4
secondary
#BBBD91
accent
#CC5CC8
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #514EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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