#401FA1#401FA1

#401FA1 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.190 H 284.5°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#401FA1
RGBrgb(64, 31, 161)
HSLhsl(255, 68%, 38%)
HSVhsv(255, 81%, 63%)
CMYKcmyk(60.2%, 80.7%, 0%, 36.9%)
CIE-LABlab(25.69, 48.49, -63.98)
CIE-LCHlch(25.69, 80.28, 307.16°)
OKLaboklab(38.14% 0.0475 -0.1844)
OKLCHoklch(38.14% 0.19 284.5)
XYZxyz(9.0354, 4.6426, 34.1313)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401FA1 #80A11F
analogous
#1F3FA1 #401FA1 #811FA1
triadic
#401FA1 #A1401F #1FA140
tetradic
#401FA1 #A11F3F #80A11F #1FA181
square
#401FA1 #A11F3F #80A11F #1FA181
split-complementary
#401FA1 #A1811F #3FA11F
monochromatic
#170B3A #2C156E #401FA1 #5429D4 #7D5BDF

Accessibility & contrast

On white

10.89
#401FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#401FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401FA1
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401FA1#FFFFFF#000000##FFFFFF
##401FA11.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#00399F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #401fa1;
/* rgb */ color: rgb(64, 31, 161);
/* oklch */ color: oklch(38.1% 0.190 284.5);
Tailwind
colors: {
  custom: {
    50: '#8160be',
    500: '#401fa1',
    950: '#000000',
  },
}
SCSS
$custom: #401fa1;
$custom-light: #8160be;
$custom-dark: #000000;
JSON
{
  "hex": "#401fa1",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 255.231,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38137,
    "c": 0.19043,
    "h": 284.5
  },
  "luminance": 0.04643
}

Semantic roles & 50–950 ramp

primary
#401FA1
secondary
#A8C458
accent
#EB3DBF
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #401FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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