#401F85#401F85

#401F85 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.158 H 290.8°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#401F85
RGBrgb(64, 31, 133)
HSLhsl(259, 62%, 32%)
HSVhsv(259, 77%, 52%)
CMYKcmyk(51.9%, 76.7%, 0%, 47.8%)
CIE-LABlab(22.87, 40.39, -51.31)
CIE-LCHlch(22.87, 65.30, 308.21°)
OKLaboklab(35.32% 0.0559 -0.1474)
OKLCHoklch(35.32% 0.158 290.8)
XYZxyz(6.8368, 3.7631, 22.5519)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401F85 #64851F
analogous
#1F3185 #401F85 #731F85
triadic
#401F85 #85401F #1F8540
tetradic
#401F85 #851F31 #64851F #1F8573
square
#401F85 #851F31 #64851F #1F8573
split-complementary
#401F85 #85731F #31851F
monochromatic
#100822 #281353 #401F85 #582BB7 #774AD5

Accessibility & contrast

On white

11.98
#401F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#401F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401F85
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401F85#FFFFFF#000000##FFFFFF
##401F851.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#003483
Tritanopia (blue-blind)
#283B50
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #401f85;
/* rgb */ color: rgb(64, 31, 133);
/* oklch */ color: oklch(35.3% 0.158 290.8);
Tailwind
colors: {
  custom: {
    50: '#7d5ea9',
    500: '#401f85',
    950: '#000000',
  },
}
SCSS
$custom: #401f85;
$custom-light: #7d5ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#401f85",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 259.412,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35319,
    "c": 0.15762,
    "h": 290.8
  },
  "luminance": 0.03763
}

Semantic roles & 50–950 ramp

primary
#401F85
secondary
#93B749
accent
#E543B1
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #401F85

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

Preview Lab → · Contrast checker → · Palette generator →

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