#51319F#51319F

#51319F is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.168 H 290.7°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#51319F
RGBrgb(81, 49, 159)
HSLhsl(257, 53%, 41%)
HSVhsv(257, 69%, 62%)
CMYKcmyk(49.1%, 69.2%, 0%, 37.6%)
CIE-LABlab(30.52, 41.28, -54.78)
CIE-LCHlch(30.52, 68.59, 307.00°)
OKLaboklab(41.9% 0.0593 -0.157)
OKLCHoklch(41.9% 0.168 290.7)
XYZxyz(10.7479, 6.4487, 33.4726)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51319F #7F9F31
analogous
#31489F #51319F #88319F
triadic
#51319F #9F5131 #319F51
tetradic
#51319F #9F3148 #7F9F31 #319F88
square
#51319F #9F3148 #7F9F31 #319F88
split-complementary
#51319F #9F8831 #489F31
monochromatic
#211441 #392370 #51319F #6C47C6 #9176D5

Accessibility & contrast

On white

9.17
#51319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#51319F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51319F
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51319F#FFFFFF#000000##FFFFFF
##51319F1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#384D64
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #51319f;
/* rgb */ color: rgb(81, 49, 159);
/* oklch */ color: oklch(41.9% 0.168 290.7);
Tailwind
colors: {
  custom: {
    50: '#896bbc',
    500: '#51319f',
    950: '#000000',
  },
}
SCSS
$custom: #51319f;
$custom-light: #896bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#51319f",
  "rgb": {
    "r": 81,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 257.455,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41902,
    "c": 0.16783,
    "h": 290.7
  },
  "luminance": 0.06449
}

Semantic roles & 50–950 ramp

primary
#51319F
secondary
#A6BD6F
accent
#DC4CB2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #51319F

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

Preview Lab → · Contrast checker → · Palette generator →

#51319F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva