#401F91#401F91

#401F91 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.172 H 287.8°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#401F91
RGBrgb(64, 31, 145)
HSLhsl(257, 65%, 35%)
HSVhsv(257, 79%, 57%)
CMYKcmyk(55.9%, 78.6%, 0%, 43.1%)
CIE-LABlab(24.04, 43.87, -56.87)
CIE-LCHlch(24.04, 71.83, 307.65°)
OKLaboklab(36.5% 0.0525 -0.1636)
OKLCHoklch(36.5% 0.172 287.8)
XYZxyz(7.7137, 4.1139, 27.1702)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401F91 #70911F
analogous
#1F3791 #401F91 #791F91
triadic
#401F91 #91401F #1F9140
tetradic
#401F91 #911F37 #70911F #1F9179
square
#401F91 #911F37 #70911F #1F9179
split-complementary
#401F91 #91791F #37911F
monochromatic
#13092C #2A145F #401F91 #562AC3 #7851DA

Accessibility & contrast

On white

11.52
#401F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#401F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401F91
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401F91#FFFFFF#000000##FFFFFF
##401F911.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C94
Deuteranopia (green-blind)
#00368F
Tritanopia (blue-blind)
#1E4057
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #401f91;
/* rgb */ color: rgb(64, 31, 145);
/* oklch */ color: oklch(36.5% 0.172 287.8);
Tailwind
colors: {
  custom: {
    50: '#7f5fb2',
    500: '#401f91',
    950: '#000000',
  },
}
SCSS
$custom: #401f91;
$custom-light: #7f5fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#401f91",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 257.368,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36497,
    "c": 0.17187,
    "h": 287.8
  },
  "luminance": 0.04114
}

Semantic roles & 50–950 ramp

primary
#401F91
secondary
#9DBD4F
accent
#E840B7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #401F91

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

Preview Lab → · Contrast checker → · Palette generator →

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