#51359E#51359E

#51359E is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.4% C 0.161 H 290.0°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#51359E
RGBrgb(81, 53, 158)
HSLhsl(256, 50%, 41%)
HSVhsv(256, 66%, 62%)
CMYKcmyk(48.7%, 66.5%, 0%, 38%)
CIE-LABlab(31.26, 38.73, -52.96)
CIE-LCHlch(31.26, 65.61, 306.18°)
OKLaboklab(42.41% 0.0553 -0.1517)
OKLCHoklch(42.41% 0.161 290)
XYZxyz(10.8362, 6.7637, 33.0757)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51359E #829E35
analogous
#354E9E #51359E #86359E
triadic
#51359E #9E5135 #359E51
tetradic
#51359E #9E354E #829E35 #359E86
square
#51359E #9E354E #829E35 #359E86
split-complementary
#51359E #9E8635 #4E9E35
monochromatic
#221642 #3A2670 #51359E #6C4DC3 #927BD3

Accessibility & contrast

On white

8.93
#51359E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#51359E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51359E
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51359E#FFFFFF#000000##FFFFFF
##51359E1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA1
Deuteranopia (green-blind)
#00479C
Tritanopia (blue-blind)
#384E65
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #51359e;
/* rgb */ color: rgb(81, 53, 158);
/* oklch */ color: oklch(42.4% 0.161 290.0);
Tailwind
colors: {
  custom: {
    50: '#896ebb',
    500: '#51359e',
    950: '#000000',
  },
}
SCSS
$custom: #51359e;
$custom-light: #896ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#51359e",
  "rgb": {
    "r": 81,
    "g": 53,
    "b": 158
  },
  "hsl": {
    "h": 256,
    "s": 49.763,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42413,
    "c": 0.16144,
    "h": 290
  },
  "luminance": 0.06764
}

Semantic roles & 50–950 ramp

primary
#51359E
secondary
#A8BB73
accent
#D94FB4
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #51359E

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

Preview Lab → · Contrast checker → · Palette generator →

#51359E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva