#401B8A#401B8A

#401B8A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.168 H 290.1°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#401B8A
RGBrgb(64, 27, 138)
HSLhsl(260, 67%, 32%)
HSVhsv(260, 80%, 54%)
CMYKcmyk(53.6%, 80.4%, 0%, 45.9%)
CIE-LABlab(22.68, 43.76, -54.76)
CIE-LCHlch(22.68, 70.09, 308.63°)
OKLaboklab(35.34% 0.0577 -0.1574)
OKLCHoklch(35.34% 0.168 290.1)
XYZxyz(7.0924, 3.7085, 24.3819)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B8A #658A1B
analogous
#1B2D8A #401B8A #781B8A
triadic
#401B8A #8A401B #1B8A40
tetradic
#401B8A #8A1B2D #658A1B #1B8A78
square
#401B8A #8A1B2D #658A1B #1B8A78
split-complementary
#401B8A #8A781B #2D8A1B
monochromatic
#110724 #281157 #401B8A #5825BD #7745DB

Accessibility & contrast

On white

12.06
#401B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#401B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B8A
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B8A#FFFFFF#000000##FFFFFF
##401B8A1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#253B52
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #401b8a;
/* rgb */ color: rgb(64, 27, 138);
/* oklch */ color: oklch(35.3% 0.168 290.1);
Tailwind
colors: {
  custom: {
    50: '#7e5dad',
    500: '#401b8a',
    950: '#000000',
  },
}
SCSS
$custom: #401b8a;
$custom-light: #7e5dad;
$custom-dark: #000000;
JSON
{
  "hex": "#401b8a",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 260,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35335,
    "c": 0.16765,
    "h": 290.1
  },
  "luminance": 0.03709
}

Semantic roles & 50–950 ramp

primary
#401B8A
secondary
#94BC45
accent
#EA3EB1
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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