#51349F#51349F

#51349F is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.3% C 0.164 H 290.0°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#51349F
RGBrgb(81, 52, 159)
HSLhsl(256, 51%, 41%)
HSVhsv(256, 67%, 62%)
CMYKcmyk(49.1%, 67.3%, 0%, 37.6%)
CIE-LABlab(31.13, 39.60, -53.78)
CIE-LCHlch(31.13, 66.78, 306.36°)
OKLaboklab(42.34% 0.0562 -0.1541)
OKLCHoklch(42.34% 0.164 290)
XYZxyz(10.8776, 6.7081, 33.5158)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51349F #829F34
analogous
#344D9F #51349F #87349F
triadic
#51349F #9F5134 #349F51
tetradic
#51349F #9F344D #829F34 #349F87
square
#51349F #9F344D #829F34 #349F87
split-complementary
#51349F #9F8734 #4D9F34
monochromatic
#221643 #3A2571 #51349F #6C4CC4 #927AD3

Accessibility & contrast

On white

8.97
#51349F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#51349F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51349F
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51349F#FFFFFF#000000##FFFFFF
##51349F1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#00479D
Tritanopia (blue-blind)
#374E65
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #51349f;
/* rgb */ color: rgb(81, 52, 159);
/* oklch */ color: oklch(42.3% 0.164 290.0);
Tailwind
colors: {
  custom: {
    50: '#896dbc',
    500: '#51349f',
    950: '#000000',
  },
}
SCSS
$custom: #51349f;
$custom-light: #896dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#51349f",
  "rgb": {
    "r": 81,
    "g": 52,
    "b": 159
  },
  "hsl": {
    "h": 256.262,
    "s": 50.711,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42344,
    "c": 0.16401,
    "h": 290
  },
  "luminance": 0.06709
}

Semantic roles & 50–950 ramp

primary
#51349F
secondary
#A8BC73
accent
#DA4EB4
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #51349F

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

Preview Lab → · Contrast checker → · Palette generator →

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