#401A83#401A83

#401A83 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.161 H 292.2°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#401A83
RGBrgb(64, 26, 131)
HSLhsl(262, 67%, 31%)
HSVhsv(262, 80%, 51%)
CMYKcmyk(51.1%, 80.2%, 0%, 48.6%)
CIE-LABlab(21.83, 42.26, -51.77)
CIE-LCHlch(21.83, 66.83, 309.22°)
OKLaboklab(34.53% 0.0607 -0.1487)
OKLCHoklch(34.53% 0.161 292.2)
XYZxyz(6.5793, 3.4672, 21.7909)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A83 #5D831A
analogous
#1A2983 #401A83 #741A83
triadic
#401A83 #83401A #1A8340
tetradic
#401A83 #831A29 #5D831A #1A8374
square
#401A83 #831A29 #5D831A #1A8374
split-complementary
#401A83 #83741A #29831A
monochromatic
#0E061D #271050 #401A83 #5924B6 #763FD9

Accessibility & contrast

On white

12.40
#401A83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#401A83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A83
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A83#FFFFFF#000000##FFFFFF
##401A831.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003686
Deuteranopia (green-blind)
#003281
Tritanopia (blue-blind)
#2A384E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401a83;
/* rgb */ color: rgb(64, 26, 131);
/* oklch */ color: oklch(34.5% 0.161 292.2);
Tailwind
colors: {
  custom: {
    50: '#7d5ca8',
    500: '#401a83',
    950: '#000000',
  },
}
SCSS
$custom: #401a83;
$custom-light: #7d5ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#401a83",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 131
  },
  "hsl": {
    "h": 261.714,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34526,
    "c": 0.16057,
    "h": 292.2
  },
  "luminance": 0.03467
}

Semantic roles & 50–950 ramp

primary
#401A83
secondary
#8CB742
accent
#EA3EAC
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #401A83

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

Preview Lab → · Contrast checker → · Palette generator →

#401A83 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva