#51339B#51339B

#51339B is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.9% C 0.160 H 291.1°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#51339B
RGBrgb(81, 51, 155)
HSLhsl(257, 50%, 40%)
HSVhsv(257, 67%, 61%)
CMYKcmyk(47.7%, 67.1%, 0%, 39.2%)
CIE-LABlab(30.60, 38.99, -52.21)
CIE-LCHlch(30.60, 65.16, 306.75°)
OKLaboklab(41.86% 0.0578 -0.1495)
OKLCHoklch(41.86% 0.16 291.1)
XYZxyz(10.4919, 6.4832, 31.7026)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51339B #7D9B33
analogous
#33499B #51339B #85339B
triadic
#51339B #9B5133 #339B51
tetradic
#51339B #9B3349 #7D9B33 #339B85
square
#51339B #9B3349 #7D9B33 #339B85
split-complementary
#51339B #9B8533 #499B33
monochromatic
#21153F #39246D #51339B #6C48C3 #9176D2

Accessibility & contrast

On white

9.14
#51339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#51339B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51339B
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51339B#FFFFFF#000000##FFFFFF
##51339B1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#004699
Tritanopia (blue-blind)
#3A4C62
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #51339b;
/* rgb */ color: rgb(81, 51, 155);
/* oklch */ color: oklch(41.9% 0.160 291.1);
Tailwind
colors: {
  custom: {
    50: '#886db9',
    500: '#51339b',
    950: '#000000',
  },
}
SCSS
$custom: #51339b;
$custom-light: #886db9;
$custom-dark: #000000;
JSON
{
  "hex": "#51339b",
  "rgb": {
    "r": 81,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 257.308,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41859,
    "c": 0.16027,
    "h": 291.1
  },
  "luminance": 0.06484
}

Semantic roles & 50–950 ramp

primary
#51339B
secondary
#A5BA6F
accent
#DA4EB2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #51339B

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

Preview Lab → · Contrast checker → · Palette generator →

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