#51409E#51409E

#51409E is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.2% C 0.146 H 287.1°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#51409E
RGBrgb(81, 64, 158)
HSLhsl(251, 42%, 44%)
HSVhsv(251, 59%, 62%)
CMYKcmyk(48.7%, 59.5%, 0%, 38%)
CIE-LABlab(33.74, 32.16, -48.94)
CIE-LCHlch(33.74, 58.56, 303.31°)
OKLaboklab(44.22% 0.0431 -0.1398)
OKLCHoklch(44.22% 0.146 287.1)
XYZxyz(11.3965, 7.8842, 33.2624)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51409E #8D9E40
analogous
#405E9E #51409E #80409E
triadic
#51409E #9E5140 #409E51
tetradic
#51409E #9E405E #8D9E40 #409E80
square
#51409E #9E405E #8D9E40 #409E80
split-complementary
#51409E #9E8040 #5E9E40
monochromatic
#241D47 #3B2E72 #51409E #6F5EBE #9689CF

Accessibility & contrast

On white

8.15
#51409E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#51409E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51409E
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51409E#FFFFFF#000000##FFFFFF
##51409E1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A1
Deuteranopia (green-blind)
#004D9C
Tritanopia (blue-blind)
#375568
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #51409e;
/* rgb */ color: rgb(81, 64, 158);
/* oklch */ color: oklch(44.2% 0.146 287.1);
Tailwind
colors: {
  custom: {
    50: '#8875bb',
    500: '#51409e',
    950: '#000000',
  },
}
SCSS
$custom: #51409e;
$custom-light: #8875bb;
$custom-dark: #000000;
JSON
{
  "hex": "#51409e",
  "rgb": {
    "r": 81,
    "g": 64,
    "b": 158
  },
  "hsl": {
    "h": 250.851,
    "s": 42.342,
    "l": 43.529
  },
  "oklch": {
    "l": 0.44219,
    "c": 0.14634,
    "h": 287.1
  },
  "luminance": 0.07885
}

Semantic roles & 50–950 ramp

primary
#51409E
secondary
#AFBA80
accent
#D256BC
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #51409E

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

Preview Lab → · Contrast checker → · Palette generator →

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