#401B7C#401B7C

#401B7C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.151 H 294.1°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#401B7C
RGBrgb(64, 27, 124)
HSLhsl(263, 64%, 30%)
HSVhsv(263, 78%, 49%)
CMYKcmyk(48.4%, 78.2%, 0%, 51.4%)
CIE-LABlab(21.32, 39.82, -48.17)
CIE-LCHlch(21.32, 62.50, 309.58°)
OKLaboklab(33.96% 0.0619 -0.1381)
OKLCHoklch(33.96% 0.151 294.1)
XYZxyz(6.1434, 3.3289, 19.3837)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B7C #577C1B
analogous
#1B267C #401B7C #711B7C
triadic
#401B7C #7C401B #1B7C40
tetradic
#401B7C #7C1B26 #577C1B #1B7C71
square
#401B7C #7C1B26 #577C1B #1B7C71
split-complementary
#401B7C #7C711B #267C1B
monochromatic
#0D0519 #26104A #401B7C #5A26AE #773DD5

Accessibility & contrast

On white

12.61
#401B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#401B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B7C
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B7C#FFFFFF#000000##FFFFFF
##401B7C1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#2E354A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #401b7c;
/* rgb */ color: rgb(64, 27, 124);
/* oklch */ color: oklch(34.0% 0.151 294.1);
Tailwind
colors: {
  custom: {
    50: '#7c5ca3',
    500: '#401b7c',
    950: '#000000',
  },
}
SCSS
$custom: #401b7c;
$custom-light: #7c5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#401b7c",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 262.887,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33963,
    "c": 0.15136,
    "h": 294.1
  },
  "luminance": 0.03329
}

Semantic roles & 50–950 ramp

primary
#401B7C
secondary
#86B043
accent
#E741A8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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