#513FB2#513FB2

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

Color values

HEX#513FB2
RGBrgb(81, 63, 178)
HSLhsl(249, 48%, 47%)
HSVhsv(249, 65%, 70%)
CMYKcmyk(54.5%, 64.6%, 0%, 30.2%)
CIE-LABlab(35.04, 38.96, -58.80)
CIE-LCHlch(35.04, 70.54, 303.53°)
OKLaboklab(45.65% 0.0429 -0.1689)
OKLCHoklch(45.65% 0.174 284.3)
XYZxyz(13.2043, 8.5179, 43.0592)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513FB2 #A0B23F
analogous
#3F67B2 #513FB2 #8A3FB2
triadic
#513FB2 #B2513F #3FB251
tetradic
#513FB2 #B23F67 #A0B23F #3FB28A
square
#513FB2 #B23F67 #A0B23F #3FB28A
split-complementary
#513FB2 #B28A3F #67B23F
monochromatic
#281F58 #3C2F85 #513FB2 #7566C9 #9E93D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##513FB2#FFFFFF#000000##FFFFFF
##513FB21.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)
#0056B6
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#275B73
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #513fb2;
/* rgb */ color: rgb(81, 63, 178);
/* oklch */ color: oklch(45.6% 0.174 284.3);
Tailwind
colors: {
  custom: {
    50: '#8b75ca',
    500: '#513fb2',
    950: '#000000',
  },
}
SCSS
$custom: #513fb2;
$custom-light: #8b75ca;
$custom-dark: #000000;
JSON
{
  "hex": "#513fb2",
  "rgb": {
    "r": 81,
    "g": 63,
    "b": 178
  },
  "hsl": {
    "h": 249.391,
    "s": 47.718,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45648,
    "c": 0.17422,
    "h": 284.3
  },
  "luminance": 0.08519
}

Semantic roles & 50–950 ramp

primary
#513FB2
secondary
#BBC489
accent
#D750C2
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #513FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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