#513FAC#513FAC

#513FAC is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.2% C 0.166 H 285.1°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#513FAC
RGBrgb(81, 63, 172)
HSLhsl(250, 46%, 46%)
HSVhsv(250, 63%, 67%)
CMYKcmyk(52.9%, 63.4%, 0%, 32.5%)
CIE-LABlab(34.56, 37.10, -56.01)
CIE-LCHlch(34.56, 67.18, 303.52°)
OKLaboklab(45.15% 0.0435 -0.1606)
OKLCHoklch(45.15% 0.166 285.1)
XYZxyz(12.6150, 8.2822, 39.9556)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513FAC #9AAC3F
analogous
#3F63AC #513FAC #873FAC
triadic
#513FAC #AC513F #3FAC51
tetradic
#513FAC #AC3F63 #9AAC3F #3FAC87
square
#513FAC #AC3F63 #9AAC3F #3FAC87
split-complementary
#513FAC #AC873F #63AC3F
monochromatic
#271E52 #3C2F7F #513FAC #7363C6 #9B8FD6

Accessibility & contrast

On white

7.90
#513FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#513FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513FAC
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513FAC#FFFFFF#000000##FFFFFF
##513FAC1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AF
Deuteranopia (green-blind)
#004EAA
Tritanopia (blue-blind)
#2D596F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #513fac;
/* rgb */ color: rgb(81, 63, 172);
/* oklch */ color: oklch(45.2% 0.166 285.1);
Tailwind
colors: {
  custom: {
    50: '#8a75c6',
    500: '#513fac',
    950: '#000000',
  },
}
SCSS
$custom: #513fac;
$custom-light: #8a75c6;
$custom-dark: #000000;
JSON
{
  "hex": "#513fac",
  "rgb": {
    "r": 81,
    "g": 63,
    "b": 172
  },
  "hsl": {
    "h": 249.908,
    "s": 46.383,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45154,
    "c": 0.16641,
    "h": 285.1
  },
  "luminance": 0.08283
}

Semantic roles & 50–950 ramp

primary
#513FAC
secondary
#B7C186
accent
#D652C0
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #513FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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