#401B97#401B97

#401B97 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.182 H 287.0°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#401B97
RGBrgb(64, 27, 151)
HSLhsl(258, 70%, 35%)
HSVhsv(258, 82%, 59%)
CMYKcmyk(57.6%, 82.1%, 0%, 40.8%)
CIE-LABlab(24.02, 47.43, -60.61)
CIE-LCHlch(24.02, 76.96, 308.04°)
OKLaboklab(36.67% 0.0533 -0.1745)
OKLCHoklch(36.67% 0.182 287)
XYZxyz(8.0905, 4.1078, 29.6387)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B97 #72971B
analogous
#1B3497 #401B97 #7E1B97
triadic
#401B97 #97401B #1B9740
tetradic
#401B97 #971B34 #72971B #1B977E
square
#401B97 #971B34 #72971B #1B977E
split-complementary
#401B97 #977E1B #34971B
monochromatic
#14082F #2A1263 #401B97 #5624CB #794DDF

Accessibility & contrast

On white

11.53
#401B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401B97
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B97#FFFFFF#000000##FFFFFF
##401B971.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#16405A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #401b97;
/* rgb */ color: rgb(64, 27, 151);
/* oklch */ color: oklch(36.7% 0.182 287.0);
Tailwind
colors: {
  custom: {
    50: '#805db7',
    500: '#401b97',
    950: '#000000',
  },
}
SCSS
$custom: #401b97;
$custom-light: #805db7;
$custom-dark: #000000;
JSON
{
  "hex": "#401b97",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 257.903,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36668,
    "c": 0.18249,
    "h": 287
  },
  "luminance": 0.04108
}

Semantic roles & 50–950 ramp

primary
#401B97
secondary
#9FC14C
accent
#EC3BB8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #401B97

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

Preview Lab → · Contrast checker → · Palette generator →

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