#513DB7#513DB7

#513DB7 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.8% C 0.183 H 284.0°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#513DB7
RGBrgb(81, 61, 183)
HSLhsl(250, 50%, 48%)
HSVhsv(250, 67%, 72%)
CMYKcmyk(55.7%, 66.7%, 0%, 28.2%)
CIE-LABlab(35.01, 41.68, -61.81)
CIE-LCHlch(35.01, 74.55, 303.99°)
OKLaboklab(45.76% 0.0442 -0.1777)
OKLCHoklch(45.76% 0.183 284)
XYZxyz(13.6067, 8.5049, 45.7152)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513DB7 #A3B73D
analogous
#3D66B7 #513DB7 #8E3DB7
triadic
#513DB7 #B7513D #3DB751
tetradic
#513DB7 #B73D66 #A3B73D #3DB78E
square
#513DB7 #B73D66 #A3B73D #3DB78E
split-complementary
#513DB7 #B78E3D #66B73D
monochromatic
#281E5B #3D2E89 #513DB7 #7665CC #9F93DB

Accessibility & contrast

On white

7.77
#513DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#513DB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513DB7
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513DB7#FFFFFF#000000##FFFFFF
##513DB71.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#004EB5
Tritanopia (blue-blind)
#215C75
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #513db7;
/* rgb */ color: rgb(81, 61, 183);
/* oklch */ color: oklch(45.8% 0.183 284.0);
Tailwind
colors: {
  custom: {
    50: '#8c74ce',
    500: '#513db7',
    950: '#000000',
  },
}
SCSS
$custom: #513db7;
$custom-light: #8c74ce;
$custom-dark: #000000;
JSON
{
  "hex": "#513db7",
  "rgb": {
    "r": 81,
    "g": 61,
    "b": 183
  },
  "hsl": {
    "h": 249.836,
    "s": 50,
    "l": 47.843
  },
  "oklch": {
    "l": 0.45757,
    "c": 0.1831,
    "h": 284
  },
  "luminance": 0.08506
}

Semantic roles & 50–950 ramp

primary
#513DB7
secondary
#BCC689
accent
#DA4EC3
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #513DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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