#514DB7#514DB7

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

Color values

HEX#514DB7
RGBrgb(81, 77, 183)
HSLhsl(242, 42%, 51%)
HSVhsv(242, 58%, 72%)
CMYKcmyk(55.7%, 57.9%, 0%, 28.2%)
CIE-LABlab(38.68, 32.03, -55.84)
CIE-LCHlch(38.68, 64.37, 299.84°)
OKLaboklab(48.44% 0.0286 -0.1601)
OKLCHoklch(48.44% 0.163 280.1)
XYZxyz(14.5918, 10.4750, 46.0435)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#514DB7 #B3B74D
analogous
#4D7EB7 #514DB7 #864DB7
triadic
#514DB7 #B7514D #4DB751
tetradic
#514DB7 #B74D7E #B3B74D #4DB786
square
#514DB7 #B74D7E #B3B74D #4DB786
split-complementary
#514DB7 #B7864D #7EB74D
monochromatic
#2A2862 #3C398E #514DB7 #7C79C9 #A6A4DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##514DB7#FFFFFF#000000##FFFFFF
##514DB71.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)
#005FBB
Deuteranopia (green-blind)
#0057B5
Tritanopia (blue-blind)
#1E667A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #514db7;
/* rgb */ color: rgb(81, 77, 183);
/* oklch */ color: oklch(48.4% 0.163 280.1);
Tailwind
colors: {
  custom: {
    50: '#8b7fcd',
    500: '#514db7',
    950: '#000000',
  },
}
SCSS
$custom: #514db7;
$custom-light: #8b7fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#514db7",
  "rgb": {
    "r": 81,
    "g": 77,
    "b": 183
  },
  "hsl": {
    "h": 242.264,
    "s": 42.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.4844,
    "c": 0.16261,
    "h": 280.1
  },
  "luminance": 0.10476
}

Semantic roles & 50–950 ramp

primary
#514DB7
secondary
#C6C798
accent
#D256CD
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #514DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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