#514EB4#514EB4

#514EB4 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.4% C 0.157 H 280.1°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#514EB4
RGBrgb(81, 78, 180)
HSLhsl(242, 40%, 51%)
HSVhsv(242, 57%, 71%)
CMYKcmyk(55%, 56.7%, 0%, 29.4%)
CIE-LABlab(38.71, 30.43, -54.02)
CIE-LCHlch(38.71, 62.01, 299.39°)
OKLaboklab(48.39% 0.0275 -0.1547)
OKLCHoklch(48.39% 0.157 280.1)
XYZxyz(14.3534, 10.4925, 44.4401)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#514EB4 #B1B44E
analogous
#4E7EB4 #514EB4 #844EB4
triadic
#514EB4 #B4514E #4EB451
tetradic
#514EB4 #B44E7E #B1B44E #4EB484
square
#514EB4 #B44E7E #B1B44E #4EB484
split-complementary
#514EB4 #B4844E #7EB44E
monochromatic
#2A285F #3D3B8A #514EB4 #7B79C6 #A6A4D8

Accessibility & contrast

On white

6.78
#514EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#514EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #514EB4
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##514EB4#FFFFFF#000000##FFFFFF
##514EB41.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB7
Deuteranopia (green-blind)
#0057B2
Tritanopia (blue-blind)
#226679
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #514eb4;
/* rgb */ color: rgb(81, 78, 180);
/* oklch */ color: oklch(48.4% 0.157 280.1);
Tailwind
colors: {
  custom: {
    50: '#8a7fcb',
    500: '#514eb4',
    950: '#000000',
  },
}
SCSS
$custom: #514eb4;
$custom-light: #8a7fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#514eb4",
  "rgb": {
    "r": 81,
    "g": 78,
    "b": 180
  },
  "hsl": {
    "h": 241.765,
    "s": 40.476,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48394,
    "c": 0.15715,
    "h": 280.1
  },
  "luminance": 0.10493
}

Semantic roles & 50–950 ramp

primary
#514EB4
secondary
#C4C698
accent
#D057CD
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #514EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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