#513388#513388

#513388 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.3% C 0.136 H 296.0°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#513388
RGBrgb(81, 51, 136)
HSLhsl(261, 45%, 37%)
HSVhsv(261, 63%, 53%)
CMYKcmyk(40.4%, 62.5%, 0%, 46.7%)
CIE-LABlab(29.14, 33.48, -42.89)
CIE-LCHlch(29.14, 54.41, 307.97°)
OKLaboklab(40.35% 0.0596 -0.1221)
OKLCHoklch(40.35% 0.136 296)
XYZxyz(9.0199, 5.8944, 23.9503)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513388 #6A8833
analogous
#334088 #513388 #7C3388
triadic
#513388 #885133 #338851
tetradic
#513388 #883340 #6A8833 #33887C
square
#513388 #883340 #6A8833 #33887C
split-complementary
#513388 #887C33 #408833
monochromatic
#1C122F #36225B #513388 #6C44B5 #8D6DC8

Accessibility & contrast

On white

9.64
#513388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#513388 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513388
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513388#FFFFFF#000000##FFFFFF
##5133881.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458B
Deuteranopia (green-blind)
#094486
Tritanopia (blue-blind)
#434658
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #513388;
/* rgb */ color: rgb(81, 51, 136);
/* oklch */ color: oklch(40.3% 0.136 296.0);
Tailwind
colors: {
  custom: {
    50: '#866cab',
    500: '#513388',
    950: '#000000',
  },
}
SCSS
$custom: #513388;
$custom-light: #866cab;
$custom-dark: #000000;
JSON
{
  "hex": "#513388",
  "rgb": {
    "r": 81,
    "g": 51,
    "b": 136
  },
  "hsl": {
    "h": 261.176,
    "s": 45.455,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40345,
    "c": 0.13584,
    "h": 296
  },
  "luminance": 0.05895
}

Semantic roles & 50–950 ramp

primary
#513388
secondary
#96B067
accent
#D553A7
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #513388

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

Preview Lab → · Contrast checker → · Palette generator →

#513388 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva