#514CD2#514CD2

#514CD2 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.4% C 0.199 H 278.1°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#514CD2
RGBrgb(81, 76, 210)
HSLhsl(242, 60%, 56%)
HSVhsv(242, 64%, 82%)
CMYKcmyk(61.4%, 63.8%, 0%, 17.6%)
CIE-LABlab(40.52, 41.39, -68.55)
CIE-LCHlch(40.52, 80.08, 301.12°)
OKLaboklab(50.44% 0.0282 -0.1974)
OKLCHoklch(50.44% 0.199 278.1)
XYZxyz(17.6069, 11.5700, 62.2657)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#514CD2 #CDD24C
analogous
#4C8AD2 #514CD2 #944CD2
triadic
#514CD2 #D2514C #4CD251
tetradic
#514CD2 #D24C8A #CDD24C #4CD294
square
#514CD2 #D24C8A #CDD24C #4CD294
split-complementary
#514CD2 #D2944C #8AD24C
monochromatic
#252183 #322DB4 #514CD2 #817DDE #B0AEEB

Accessibility & contrast

On white

6.34
#514CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#514CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #514CD2
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##514CD2#FFFFFF#000000##FFFFFF
##514CD21.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D6
Deuteranopia (green-blind)
#005ACF
Tritanopia (blue-blind)
#006E88
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #514cd2;
/* rgb */ color: rgb(81, 76, 210);
/* oklch */ color: oklch(50.4% 0.199 278.1);
Tailwind
colors: {
  custom: {
    50: '#8f7fe1',
    500: '#514cd2',
    950: '#000000',
  },
}
SCSS
$custom: #514cd2;
$custom-light: #8f7fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#514cd2",
  "rgb": {
    "r": 81,
    "g": 76,
    "b": 210
  },
  "hsl": {
    "h": 242.239,
    "s": 59.821,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50444,
    "c": 0.19945,
    "h": 278.1
  },
  "luminance": 0.11571
}

Semantic roles & 50–950 ramp

primary
#514CD2
secondary
#D7D9A1
accent
#E345DD
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #514CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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