#514DB4#514DB4

#514DB4 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.2% C 0.159 H 280.4°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#514DB4
RGBrgb(81, 77, 180)
HSLhsl(242, 41%, 50%)
HSVhsv(242, 57%, 71%)
CMYKcmyk(55%, 57.2%, 0%, 29.4%)
CIE-LABlab(38.47, 31.06, -54.42)
CIE-LCHlch(38.47, 62.66, 299.71°)
OKLaboklab(48.21% 0.0286 -0.1559)
OKLCHoklch(48.21% 0.159 280.4)
XYZxyz(14.2829, 10.3515, 44.4166)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#514DB4 #B0B44D
analogous
#4D7CB4 #514DB4 #844DB4
triadic
#514DB4 #B4514D #4DB451
tetradic
#514DB4 #B44D7C #B0B44D #4DB484
square
#514DB4 #B44D7C #B0B44D #4DB484
split-complementary
#514DB4 #B4844D #7CB44D
monochromatic
#2A285F #3D3A8A #514DB4 #7B78C6 #A5A3D8

Accessibility & contrast

On white

6.84
#514DB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#514DB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #514DB4
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##514DB4#FFFFFF#000000##FFFFFF
##514DB41.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #514db4;
/* rgb */ color: rgb(81, 77, 180);
/* oklch */ color: oklch(48.2% 0.159 280.4);
Tailwind
colors: {
  custom: {
    50: '#8a7fcb',
    500: '#514db4',
    950: '#000000',
  },
}
SCSS
$custom: #514db4;
$custom-light: #8a7fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#514db4",
  "rgb": {
    "r": 81,
    "g": 77,
    "b": 180
  },
  "hsl": {
    "h": 242.33,
    "s": 40.711,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48212,
    "c": 0.1585,
    "h": 280.4
  },
  "luminance": 0.10352
}

Semantic roles & 50–950 ramp

primary
#514DB4
secondary
#C4C597
accent
#D157CC
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0D0A13
muted
#7D7C82

Preview Lab

Preview with #514DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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