#401D9C#401D9C

#401D9C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.186 H 285.7°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#401D9C
RGBrgb(64, 29, 156)
HSLhsl(257, 69%, 36%)
HSVhsv(257, 81%, 61%)
CMYKcmyk(59%, 81.4%, 0%, 38.8%)
CIE-LABlab(24.85, 47.96, -62.31)
CIE-LCHlch(24.85, 78.63, 307.59°)
OKLaboklab(37.4% 0.0504 -0.1795)
OKLCHoklch(37.4% 0.186 285.7)
XYZxyz(8.5526, 4.3685, 31.8386)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D9C #799C1D
analogous
#1D3A9C #401D9C #801D9C
triadic
#401D9C #9C401D #1D9C40
tetradic
#401D9C #9C1D3A #799C1D #1D9C80
square
#401D9C #9C1D3A #799C1D #1D9C80
split-complementary
#401D9C #9C801D #3A9C1D
monochromatic
#160A35 #2B1368 #401D9C #5527D0 #7A54DF

Accessibility & contrast

On white

11.21
#401D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#401D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D9C
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D9C#FFFFFF#000000##FFFFFF
##401D9C1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9F
Deuteranopia (green-blind)
#00379A
Tritanopia (blue-blind)
#0D435D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #401d9c;
/* rgb */ color: rgb(64, 29, 156);
/* oklch */ color: oklch(37.4% 0.186 285.7);
Tailwind
colors: {
  custom: {
    50: '#815fba',
    500: '#401d9c',
    950: '#000000',
  },
}
SCSS
$custom: #401d9c;
$custom-light: #815fba;
$custom-dark: #000000;
JSON
{
  "hex": "#401d9c",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 256.535,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.374,
    "c": 0.18645,
    "h": 285.7
  },
  "luminance": 0.04369
}

Semantic roles & 50–950 ramp

primary
#401D9C
secondary
#A4C252
accent
#EB3CBB
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #401D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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