#51309E#51309E

#51309E is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.168 H 291.1°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#51309E
RGBrgb(81, 48, 158)
HSLhsl(258, 53%, 40%)
HSVhsv(258, 70%, 62%)
CMYKcmyk(48.7%, 69.6%, 0%, 38%)
CIE-LABlab(30.23, 41.54, -54.63)
CIE-LCHlch(30.23, 68.63, 307.25°)
OKLaboklab(41.67% 0.0604 -0.1566)
OKLCHoklch(41.67% 0.168 291.1)
XYZxyz(10.6201, 6.3315, 33.0036)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51309E #7D9E30
analogous
#30469E #51309E #88309E
triadic
#51309E #9E5130 #309E51
tetradic
#51309E #9E3046 #7D9E30 #309E88
square
#51309E #9E3046 #7D9E30 #309E88
split-complementary
#51309E #9E8830 #469E30
monochromatic
#211340 #39226F #51309E #6C45C6 #9174D5

Accessibility & contrast

On white

9.27
#51309E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#51309E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51309E
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51309E#FFFFFF#000000##FFFFFF
##51309E1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#00459C
Tritanopia (blue-blind)
#384C63
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #51309e;
/* rgb */ color: rgb(81, 48, 158);
/* oklch */ color: oklch(41.7% 0.168 291.1);
Tailwind
colors: {
  custom: {
    50: '#896bbc',
    500: '#51309e',
    950: '#000000',
  },
}
SCSS
$custom: #51309e;
$custom-light: #896bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#51309e",
  "rgb": {
    "r": 81,
    "g": 48,
    "b": 158
  },
  "hsl": {
    "h": 258,
    "s": 53.398,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41673,
    "c": 0.16785,
    "h": 291.1
  },
  "luminance": 0.06332
}

Semantic roles & 50–950 ramp

primary
#51309E
secondary
#A5BD6D
accent
#DD4BB1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #51309E

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

Preview Lab → · Contrast checker → · Palette generator →

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