#401B83#401B83

#401B83 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.160 H 292.0°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#401B83
RGBrgb(64, 27, 131)
HSLhsl(261, 66%, 31%)
HSVhsv(261, 79%, 51%)
CMYKcmyk(51.1%, 79.4%, 0%, 48.6%)
CIE-LABlab(21.99, 41.79, -51.50)
CIE-LCHlch(21.99, 66.32, 309.06°)
OKLaboklab(34.64% 0.0599 -0.1479)
OKLCHoklch(34.64% 0.16 292)
XYZxyz(6.6019, 3.5123, 21.7984)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B83 #5E831B
analogous
#1B2A83 #401B83 #741B83
triadic
#401B83 #83401B #1B8340
tetradic
#401B83 #831B2A #5E831B #1B8374
square
#401B83 #831B2A #5E831B #1B8374
split-complementary
#401B83 #83741B #2A831B
monochromatic
#0E061E #271150 #401B83 #5925B6 #7641D8

Accessibility & contrast

On white

12.33
#401B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#401B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B83
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B83#FFFFFF#000000##FFFFFF
##401B831.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401b83;
/* rgb */ color: rgb(64, 27, 131);
/* oklch */ color: oklch(34.6% 0.160 292.0);
Tailwind
colors: {
  custom: {
    50: '#7d5ca8',
    500: '#401b83',
    950: '#000000',
  },
}
SCSS
$custom: #401b83;
$custom-light: #7d5ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#401b83",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 131
  },
  "hsl": {
    "h": 261.346,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3464,
    "c": 0.15955,
    "h": 292
  },
  "luminance": 0.03513
}

Semantic roles & 50–950 ramp

primary
#401B83
secondary
#8DB643
accent
#E93FAC
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #401B83

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

Preview Lab → · Contrast checker → · Palette generator →

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