#401D85#401D85

#401D85 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.160 H 291.1°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#401D85
RGBrgb(64, 29, 133)
HSLhsl(260, 64%, 32%)
HSVhsv(260, 78%, 52%)
CMYKcmyk(51.9%, 78.2%, 0%, 47.8%)
CIE-LABlab(22.52, 41.39, -51.89)
CIE-LCHlch(22.52, 66.37, 308.58°)
OKLaboklab(35.07% 0.0576 -0.149)
OKLCHoklch(35.07% 0.16 291.1)
XYZxyz(6.7861, 3.6619, 22.5350)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D85 #62851D
analogous
#1D2E85 #401D85 #741D85
triadic
#401D85 #85401D #1D8540
tetradic
#401D85 #851D2E #62851D #1D8574
square
#401D85 #851D2E #62851D #1D8574
split-complementary
#401D85 #85741D #2E851D
monochromatic
#100721 #281253 #401D85 #5828B7 #7746D7

Accessibility & contrast

On white

12.12
#401D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#401D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D85
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D85#FFFFFF#000000##FFFFFF
##401D851.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#003483
Tritanopia (blue-blind)
#283A50
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #401d85;
/* rgb */ color: rgb(64, 29, 133);
/* oklch */ color: oklch(35.1% 0.160 291.1);
Tailwind
colors: {
  custom: {
    50: '#7d5da9',
    500: '#401d85',
    950: '#000000',
  },
}
SCSS
$custom: #401d85;
$custom-light: #7d5da9;
$custom-dark: #000000;
JSON
{
  "hex": "#401d85",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 133
  },
  "hsl": {
    "h": 260.192,
    "s": 64.198,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35072,
    "c": 0.15979,
    "h": 291.1
  },
  "luminance": 0.03662
}

Semantic roles & 50–950 ramp

primary
#401D85
secondary
#92B846
accent
#E741AF
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #401D85

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

Preview Lab → · Contrast checker → · Palette generator →

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