#401B7B#401B7B

#401B7B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.150 H 294.5°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#401B7B
RGBrgb(64, 27, 123)
HSLhsl(263, 64%, 29%)
HSVhsv(263, 78%, 48%)
CMYKcmyk(48%, 78%, 0%, 51.8%)
CIE-LABlab(21.22, 39.54, -47.69)
CIE-LCHlch(21.22, 61.95, 309.66°)
OKLaboklab(33.87% 0.0622 -0.1367)
OKLCHoklch(33.87% 0.15 294.5)
XYZxyz(6.0805, 3.3037, 19.0524)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B7B #567B1B
analogous
#1B267B #401B7B #701B7B
triadic
#401B7B #7B401B #1B7B40
tetradic
#401B7B #7B1B26 #567B1B #1B7B70
square
#401B7B #7B1B26 #567B1B #1B7B70
split-complementary
#401B7B #7B701B #267B1B
monochromatic
#0D0619 #261049 #401B7B #5A26AD #773CD4

Accessibility & contrast

On white

12.64
#401B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401B7B
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B7B#FFFFFF#000000##FFFFFF
##401B7B1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#2F354A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #401b7b;
/* rgb */ color: rgb(64, 27, 123);
/* oklch */ color: oklch(33.9% 0.150 294.5);
Tailwind
colors: {
  custom: {
    50: '#7b5ca2',
    500: '#401b7b',
    950: '#000000',
  },
}
SCSS
$custom: #401b7b;
$custom-light: #7b5ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#401b7b",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 263.125,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33868,
    "c": 0.15019,
    "h": 294.5
  },
  "luminance": 0.03304
}

Semantic roles & 50–950 ramp

primary
#401B7B
secondary
#85AF43
accent
#E741A7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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