#513EB5#513EB5

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

Color values

HEX#513EB5
RGBrgb(81, 62, 181)
HSLhsl(250, 49%, 48%)
HSVhsv(250, 66%, 71%)
CMYKcmyk(55.2%, 65.7%, 0%, 29%)
CIE-LABlab(35.06, 40.48, -60.54)
CIE-LCHlch(35.06, 72.83, 303.77°)
OKLaboklab(45.74% 0.0435 -0.174)
OKLCHoklch(45.74% 0.179 284)
XYZxyz(13.4539, 8.5300, 44.6446)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513EB5 #A2B53E
analogous
#3E66B5 #513EB5 #8D3EB5
triadic
#513EB5 #B5513E #3EB551
tetradic
#513EB5 #B53E66 #A2B53E #3EB58D
square
#513EB5 #B53E66 #A2B53E #3EB58D
split-complementary
#513EB5 #B58D3E #66B53E
monochromatic
#281F5A #3D2E87 #513EB5 #7666CA #9F93DA

Accessibility & contrast

On white

7.76
#513EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#513EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513EB5
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513EB5#FFFFFF#000000##FFFFFF
##513EB51.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#004FB3
Tritanopia (blue-blind)
#235C74
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #513eb5;
/* rgb */ color: rgb(81, 62, 181);
/* oklch */ color: oklch(45.7% 0.179 284.0);
Tailwind
colors: {
  custom: {
    50: '#8b74cc',
    500: '#513eb5',
    950: '#000000',
  },
}
SCSS
$custom: #513eb5;
$custom-light: #8b74cc;
$custom-dark: #000000;
JSON
{
  "hex": "#513eb5",
  "rgb": {
    "r": 81,
    "g": 62,
    "b": 181
  },
  "hsl": {
    "h": 249.58,
    "s": 48.971,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45742,
    "c": 0.17933,
    "h": 284
  },
  "luminance": 0.08531
}

Semantic roles & 50–950 ramp

primary
#513EB5
secondary
#BCC589
accent
#D94FC3
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #513EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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