#513FB5#513FB5

#513FB5 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.9% C 0.178 H 283.8°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#513FB5
RGBrgb(81, 63, 181)
HSLhsl(249, 48%, 48%)
HSVhsv(249, 65%, 71%)
CMYKcmyk(55.2%, 65.2%, 0%, 29%)
CIE-LABlab(35.28, 39.89, -60.19)
CIE-LCHlch(35.28, 72.21, 303.54°)
OKLaboklab(45.9% 0.0426 -0.1729)
OKLCHoklch(45.9% 0.178 283.8)
XYZxyz(13.5088, 8.6397, 44.6629)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513FB5 #A3B53F
analogous
#3F68B5 #513FB5 #8C3FB5
triadic
#513FB5 #B5513F #3FB551
tetradic
#513FB5 #B53F68 #A3B53F #3FB58C
square
#513FB5 #B53F68 #A3B53F #3FB58C
split-complementary
#513FB5 #B58C3F #68B53F
monochromatic
#281F5A #3D2F88 #513FB5 #7667CA #9F94DA

Accessibility & contrast

On white

7.70
#513FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#513FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513FB5
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513FB5#FFFFFF#000000##FFFFFF
##513FB51.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #513fb5;
/* rgb */ color: rgb(81, 63, 181);
/* oklch */ color: oklch(45.9% 0.178 283.8);
Tailwind
colors: {
  custom: {
    50: '#8b75cc',
    500: '#513fb5',
    950: '#000000',
  },
}
SCSS
$custom: #513fb5;
$custom-light: #8b75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#513fb5",
  "rgb": {
    "r": 81,
    "g": 63,
    "b": 181
  },
  "hsl": {
    "h": 249.153,
    "s": 48.361,
    "l": 47.843
  },
  "oklch": {
    "l": 0.459,
    "c": 0.17809,
    "h": 283.8
  },
  "luminance": 0.08641
}

Semantic roles & 50–950 ramp

primary
#513FB5
secondary
#BCC58A
accent
#D850C3
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #513FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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