#513EB4#513EB4

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

Color values

HEX#513EB4
RGBrgb(81, 62, 180)
HSLhsl(250, 49%, 47%)
HSVhsv(250, 66%, 71%)
CMYKcmyk(55%, 65.6%, 0%, 29.4%)
CIE-LABlab(34.98, 40.17, -60.08)
CIE-LCHlch(34.98, 72.27, 303.77°)
OKLaboklab(45.66% 0.0437 -0.1726)
OKLCHoklch(45.66% 0.178 284.2)
XYZxyz(13.3517, 8.4891, 44.1062)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513EB4 #A1B43E
analogous
#3E66B4 #513EB4 #8C3EB4
triadic
#513EB4 #B4513E #3EB451
tetradic
#513EB4 #B43E66 #A1B43E #3EB48C
square
#513EB4 #B43E66 #A1B43E #3EB48C
split-complementary
#513EB4 #B48C3E #66B43E
monochromatic
#281F59 #3D2E86 #513EB4 #7565CA #9E93DA

Accessibility & contrast

On white

7.78
#513EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #513EB4
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513EB4#FFFFFF#000000##FFFFFF
##513EB41.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B8
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#245B73
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #513eb4;
/* rgb */ color: rgb(81, 62, 180);
/* oklch */ color: oklch(45.7% 0.178 284.2);
Tailwind
colors: {
  custom: {
    50: '#8b74cb',
    500: '#513eb4',
    950: '#000000',
  },
}
SCSS
$custom: #513eb4;
$custom-light: #8b74cb;
$custom-dark: #000000;
JSON
{
  "hex": "#513eb4",
  "rgb": {
    "r": 81,
    "g": 62,
    "b": 180
  },
  "hsl": {
    "h": 249.661,
    "s": 48.76,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45657,
    "c": 0.17805,
    "h": 284.2
  },
  "luminance": 0.0849
}

Semantic roles & 50–950 ramp

primary
#513EB4
secondary
#BBC589
accent
#D84FC2
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #513EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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