#401BA1#401BA1

#401BA1 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.7% C 0.194 H 284.9°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#401BA1
RGBrgb(64, 27, 161)
HSLhsl(257, 71%, 37%)
HSVhsv(257, 83%, 63%)
CMYKcmyk(60.2%, 83.2%, 0%, 36.9%)
CIE-LABlab(25.10, 50.23, -64.96)
CIE-LCHlch(25.10, 82.12, 307.71°)
OKLaboklab(37.73% 0.0498 -0.1872)
OKLCHoklch(37.73% 0.194 284.9)
XYZxyz(8.9373, 4.4465, 34.0986)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401BA1 #7CA11B
analogous
#1B39A1 #401BA1 #831BA1
triadic
#401BA1 #A1401B #1BA140
tetradic
#401BA1 #A11B39 #7CA11B #1BA183
square
#401BA1 #A11B39 #7CA11B #1BA183
split-complementary
#401BA1 #A1831B #39A11B
monochromatic
#160938 #2B126D #401BA1 #5524D5 #7B54E2

Accessibility & contrast

On white

11.11
#401BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#401BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401BA1
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401BA1#FFFFFF#000000##FFFFFF
##401BA11.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA5
Deuteranopia (green-blind)
#00379F
Tritanopia (blue-blind)
#004560
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #401ba1;
/* rgb */ color: rgb(64, 27, 161);
/* oklch */ color: oklch(37.7% 0.194 284.9);
Tailwind
colors: {
  custom: {
    50: '#825ebe',
    500: '#401ba1',
    950: '#000000',
  },
}
SCSS
$custom: #401ba1;
$custom-light: #825ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#401ba1",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 256.567,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37726,
    "c": 0.19374,
    "h": 284.9
  },
  "luminance": 0.04447
}

Semantic roles & 50–950 ramp

primary
#401BA1
secondary
#A6C552
accent
#EE3ABC
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #401BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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