#514EB5#514EB5

#514EB5 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.5% C 0.159 H 280.0°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#514EB5
RGBrgb(81, 78, 181)
HSLhsl(242, 41%, 51%)
HSVhsv(242, 57%, 71%)
CMYKcmyk(55.2%, 56.9%, 0%, 29%)
CIE-LABlab(38.78, 30.76, -54.50)
CIE-LCHlch(38.78, 62.58, 299.44°)
OKLaboklab(48.47% 0.0275 -0.1561)
OKLCHoklch(48.47% 0.159 280)
XYZxyz(14.4556, 10.5334, 44.9785)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#514EB5 #B2B54E
analogous
#4E7EB5 #514EB5 #844EB5
triadic
#514EB5 #B5514E #4EB551
tetradic
#514EB5 #B54E7E #B2B54E #4EB584
square
#514EB5 #B54E7E #B2B54E #4EB584
split-complementary
#514EB5 #B5844E #7EB54E
monochromatic
#2A2860 #3D3A8B #514EB5 #7B79C7 #A6A4D9

Accessibility & contrast

On white

6.76
#514EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#514EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #514EB5
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##514EB5#FFFFFF#000000##FFFFFF
##514EB51.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB8
Deuteranopia (green-blind)
#0057B3
Tritanopia (blue-blind)
#21667A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #514eb5;
/* rgb */ color: rgb(81, 78, 181);
/* oklch */ color: oklch(48.5% 0.159 280.0);
Tailwind
colors: {
  custom: {
    50: '#8a7fcc',
    500: '#514eb5',
    950: '#000000',
  },
}
SCSS
$custom: #514eb5;
$custom-light: #8a7fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#514eb5",
  "rgb": {
    "r": 81,
    "g": 78,
    "b": 181
  },
  "hsl": {
    "h": 241.748,
    "s": 41.036,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48469,
    "c": 0.15854,
    "h": 280
  },
  "luminance": 0.10534
}

Semantic roles & 50–950 ramp

primary
#514EB5
secondary
#C5C699
accent
#D157CD
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0D0A13
muted
#7D7C82

Preview Lab

Preview with #514EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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