#401B7A#401B7A

#401B7A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.149 H 294.8°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#401B7A
RGBrgb(64, 27, 122)
HSLhsl(263, 64%, 29%)
HSVhsv(263, 78%, 48%)
CMYKcmyk(47.5%, 77.9%, 0%, 52.2%)
CIE-LABlab(21.13, 39.25, -47.21)
CIE-LCHlch(21.13, 61.40, 309.75°)
OKLaboklab(33.77% 0.0625 -0.1353)
OKLCHoklch(33.77% 0.149 294.8)
XYZxyz(6.0182, 3.2788, 18.7244)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B7A #557A1B
analogous
#1B267A #401B7A #701B7A
triadic
#401B7A #7A401B #1B7A40
tetradic
#401B7A #7A1B26 #557A1B #1B7A70
square
#401B7A #7A1B26 #557A1B #1B7A70
split-complementary
#401B7A #7A701B #267A1B
monochromatic
#0D0619 #261048 #401B7A #5A26AC #773CD4

Accessibility & contrast

On white

12.68
#401B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#401B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B7A
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B7A#FFFFFF#000000##FFFFFF
##401B7A1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#2F3449
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #401b7a;
/* rgb */ color: rgb(64, 27, 122);
/* oklch */ color: oklch(33.8% 0.149 294.8);
Tailwind
colors: {
  custom: {
    50: '#7b5ca1',
    500: '#401b7a',
    950: '#000000',
  },
}
SCSS
$custom: #401b7a;
$custom-light: #7b5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#401b7a",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 263.368,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33773,
    "c": 0.14902,
    "h": 294.8
  },
  "luminance": 0.03279
}

Semantic roles & 50–950 ramp

primary
#401B7A
secondary
#84AE43
accent
#E741A6
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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