#51339D#51339D

#51339D is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.0% C 0.163 H 290.7°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#51339D
RGBrgb(81, 51, 157)
HSLhsl(257, 51%, 41%)
HSVhsv(257, 68%, 62%)
CMYKcmyk(48.4%, 67.5%, 0%, 38.4%)
CIE-LABlab(30.76, 39.57, -53.17)
CIE-LCHlch(30.76, 66.28, 306.66°)
OKLaboklab(42.03% 0.0575 -0.1523)
OKLCHoklch(42.03% 0.163 290.7)
XYZxyz(10.6612, 6.5509, 32.5945)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51339D #7F9D33
analogous
#334A9D #51339D #86339D
triadic
#51339D #9D5133 #339D51
tetradic
#51339D #9D334A #7F9D33 #339D86
square
#51339D #9D334A #7F9D33 #339D86
split-complementary
#51339D #9D8633 #4A9D33
monochromatic
#211541 #39246F #51339D #6C49C4 #9177D3

Accessibility & contrast

On white

9.09
#51339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#51339D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51339D
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51339D#FFFFFF#000000##FFFFFF
##51339D1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#00469B
Tritanopia (blue-blind)
#394D63
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #51339d;
/* rgb */ color: rgb(81, 51, 157);
/* oklch */ color: oklch(42.0% 0.163 290.7);
Tailwind
colors: {
  custom: {
    50: '#896dbb',
    500: '#51339d',
    950: '#000000',
  },
}
SCSS
$custom: #51339d;
$custom-light: #896dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#51339d",
  "rgb": {
    "r": 81,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 256.981,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42026,
    "c": 0.16279,
    "h": 290.7
  },
  "luminance": 0.06551
}

Semantic roles & 50–950 ramp

primary
#51339D
secondary
#A6BB70
accent
#DA4DB3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #51339D

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

Preview Lab → · Contrast checker → · Palette generator →

#51339D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva