#51409D#51409D

#51409D is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.1% C 0.145 H 287.3°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#51409D
RGBrgb(81, 64, 157)
HSLhsl(251, 42%, 43%)
HSVhsv(251, 59%, 62%)
CMYKcmyk(48.4%, 59.2%, 0%, 38.4%)
CIE-LABlab(33.67, 31.85, -48.45)
CIE-LCHlch(33.67, 57.98, 303.32°)
OKLaboklab(44.14% 0.0431 -0.1384)
OKLCHoklch(44.14% 0.145 287.3)
XYZxyz(11.3108, 7.8500, 32.8110)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51409D #8C9D40
analogous
#405D9D #51409D #7F409D
triadic
#51409D #9D5140 #409D51
tetradic
#51409D #9D405D #8C9D40 #409D7F
square
#51409D #9D405D #8C9D40 #409D7F
split-complementary
#51409D #9D7F40 #5D9D40
monochromatic
#241D46 #3B2E72 #51409D #6F5DBD #9589CF

Accessibility & contrast

On white

8.17
#51409D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#51409D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51409D
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51409D#FFFFFF#000000##FFFFFF
##51409D1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A0
Deuteranopia (green-blind)
#004D9B
Tritanopia (blue-blind)
#385568
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #51409d;
/* rgb */ color: rgb(81, 64, 157);
/* oklch */ color: oklch(44.1% 0.145 287.3);
Tailwind
colors: {
  custom: {
    50: '#8875bb',
    500: '#51409d',
    950: '#000000',
  },
}
SCSS
$custom: #51409d;
$custom-light: #8875bb;
$custom-dark: #000000;
JSON
{
  "hex": "#51409d",
  "rgb": {
    "r": 81,
    "g": 64,
    "b": 157
  },
  "hsl": {
    "h": 250.968,
    "s": 42.081,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44143,
    "c": 0.14497,
    "h": 287.3
  },
  "luminance": 0.0785
}

Semantic roles & 50–950 ramp

primary
#51409D
secondary
#AFB97F
accent
#D256BB
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #51409D

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

Preview Lab → · Contrast checker → · Palette generator →

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