#401C9F#401C9F

#401C9F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.191 H 285.2°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#401C9F
RGBrgb(64, 28, 159)
HSLhsl(256, 70%, 37%)
HSVhsv(256, 82%, 62%)
CMYKcmyk(59.7%, 82.4%, 0%, 37.6%)
CIE-LABlab(25.02, 49.25, -63.86)
CIE-LCHlch(25.02, 80.64, 307.64°)
OKLaboklab(37.61% 0.05 -0.184)
OKLCHoklch(37.61% 0.191 285.2)
XYZxyz(8.7857, 4.4232, 33.1850)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C9F #7B9F1C
analogous
#1C399F #401C9F #821C9F
triadic
#401C9F #9F401C #1C9F40
tetradic
#401C9F #9F1C39 #7B9F1C #1C9F82
square
#401C9F #9F1C39 #7B9F1C #1C9F82
split-complementary
#401C9F #9F821C #399F1C
monochromatic
#160A37 #2B136B #401C9F #5525D3 #7B54E1

Accessibility & contrast

On white

11.14
#401C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#401C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C9F
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C9F#FFFFFF#000000##FFFFFF
##401C9F1.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00379D
Tritanopia (blue-blind)
#05445F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #401c9f;
/* rgb */ color: rgb(64, 28, 159);
/* oklch */ color: oklch(37.6% 0.191 285.2);
Tailwind
colors: {
  custom: {
    50: '#815ebd',
    500: '#401c9f',
    950: '#000000',
  },
}
SCSS
$custom: #401c9f;
$custom-light: #815ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#401c9f",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 159
  },
  "hsl": {
    "h": 256.489,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37612,
    "c": 0.19069,
    "h": 285.2
  },
  "luminance": 0.04424
}

Semantic roles & 50–950 ramp

primary
#401C9F
secondary
#A5C453
accent
#ED3BBC
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #401C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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