#513FAF#513FAF

#513FAF is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.4% C 0.170 H 284.7°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#513FAF
RGBrgb(81, 63, 175)
HSLhsl(250, 47%, 47%)
HSVhsv(250, 64%, 69%)
CMYKcmyk(53.7%, 64%, 0%, 31.4%)
CIE-LABlab(34.80, 38.03, -57.41)
CIE-LCHlch(34.80, 68.86, 303.52°)
OKLaboklab(45.4% 0.0432 -0.1648)
OKLCHoklch(45.4% 0.17 284.7)
XYZxyz(12.9064, 8.3988, 41.4902)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513FAF #9DAF3F
analogous
#3F65AF #513FAF #893FAF
triadic
#513FAF #AF513F #3FAF51
tetradic
#513FAF #AF3F65 #9DAF3F #3FAF89
square
#513FAF #AF3F65 #9DAF3F #3FAF89
split-complementary
#513FAF #AF893F #65AF3F
monochromatic
#271F55 #3C2F82 #513FAF #7464C7 #9C91D7

Accessibility & contrast

On white

7.84
#513FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#513FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513FAF
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513FAF#FFFFFF#000000##FFFFFF
##513FAF1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#004EAD
Tritanopia (blue-blind)
#2A5A71
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #513faf;
/* rgb */ color: rgb(81, 63, 175);
/* oklch */ color: oklch(45.4% 0.170 284.7);
Tailwind
colors: {
  custom: {
    50: '#8a75c8',
    500: '#513faf',
    950: '#000000',
  },
}
SCSS
$custom: #513faf;
$custom-light: #8a75c8;
$custom-dark: #000000;
JSON
{
  "hex": "#513faf",
  "rgb": {
    "r": 81,
    "g": 63,
    "b": 175
  },
  "hsl": {
    "h": 249.643,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.454,
    "c": 0.17033,
    "h": 284.7
  },
  "luminance": 0.08399
}

Semantic roles & 50–950 ramp

primary
#513FAF
secondary
#B9C387
accent
#D751C1
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0D0813
muted
#7D7B82

Preview Lab

Preview with #513FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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