#401BAA#401BAA

#401BAA is a dark, highly saturated violet. Relative luminance 0.048; OKLCH L 38.7% C 0.204 H 283.2°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#401BAA
RGBrgb(64, 27, 170)
HSLhsl(256, 73%, 39%)
HSVhsv(256, 84%, 67%)
CMYKcmyk(62.4%, 84.1%, 0%, 33.3%)
CIE-LABlab(26.09, 52.73, -68.78)
CIE-LCHlch(26.09, 86.67, 307.48°)
OKLaboklab(38.7% 0.0466 -0.1983)
OKLCHoklch(38.7% 0.204 283.2)
XYZxyz(9.7597, 4.7755, 38.4299)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401BAA #85AA1B
analogous
#1B3EAA #401BAA #871BAA
triadic
#401BAA #AA401B #1BAA40
tetradic
#401BAA #AA1B3E #85AA1B #1BAA87
square
#401BAA #AA1B3E #85AA1B #1BAA87
split-complementary
#401BAA #AA871B #3EAA1B
monochromatic
#180A40 #2C1375 #401BAA #5526DC #7E5BE5

Accessibility & contrast

On white

10.74
#401BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#401BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401BAA
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401BAA#FFFFFF#000000##FFFFFF
##401BAA1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AE
Deuteranopia (green-blind)
#0039A8
Tritanopia (blue-blind)
#004865
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #401baa;
/* rgb */ color: rgb(64, 27, 170);
/* oklch */ color: oklch(38.7% 0.204 283.2);
Tailwind
colors: {
  custom: {
    50: '#835fc5',
    500: '#401baa',
    950: '#000000',
  },
}
SCSS
$custom: #401baa;
$custom-light: #835fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#401baa",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 170
  },
  "hsl": {
    "h": 255.524,
    "s": 72.589,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38697,
    "c": 0.20375,
    "h": 283.2
  },
  "luminance": 0.04776
}

Semantic roles & 50–950 ramp

primary
#401BAA
secondary
#ACC958
accent
#EF39C0
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #401BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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