#401DA0#401DA0

#401DA0 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.191 H 284.9°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#401DA0
RGBrgb(64, 29, 160)
HSLhsl(256, 69%, 37%)
HSVhsv(256, 82%, 63%)
CMYKcmyk(60%, 81.9%, 0%, 37.3%)
CIE-LABlab(25.28, 49.10, -64.05)
CIE-LCHlch(25.28, 80.70, 307.47°)
OKLaboklab(37.82% 0.0491 -0.1846)
OKLCHoklch(37.82% 0.191 284.9)
XYZxyz(8.8969, 4.5062, 33.6519)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401DA0 #7DA01D
analogous
#1D3BA0 #401DA0 #821DA0
triadic
#401DA0 #A0401D #1DA040
tetradic
#401DA0 #A01D3B #7DA01D #1DA082
square
#401DA0 #A01D3B #7DA01D #1DA082
split-complementary
#401DA0 #A0821D #3BA01D
monochromatic
#170A38 #2B146C #401DA0 #5526D4 #7C57E1

Accessibility & contrast

On white

11.04
#401DA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#401DA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401DA0
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401DA0#FFFFFF#000000##FFFFFF
##401DA01.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA4
Deuteranopia (green-blind)
#00389E
Tritanopia (blue-blind)
#02455F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #401da0;
/* rgb */ color: rgb(64, 29, 160);
/* oklch */ color: oklch(37.8% 0.191 284.9);
Tailwind
colors: {
  custom: {
    50: '#815fbd',
    500: '#401da0',
    950: '#000000',
  },
}
SCSS
$custom: #401da0;
$custom-light: #815fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#401da0",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 160
  },
  "hsl": {
    "h": 256.031,
    "s": 69.312,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3782,
    "c": 0.191,
    "h": 284.9
  },
  "luminance": 0.04507
}

Semantic roles & 50–950 ramp

primary
#401DA0
secondary
#A6C455
accent
#EC3CBD
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #401DA0

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

Preview Lab → · Contrast checker → · Palette generator →

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