#401C7B#401C7B

#401C7B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.149 H 294.3°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#401C7B
RGBrgb(64, 28, 123)
HSLhsl(263, 63%, 30%)
HSVhsv(263, 77%, 48%)
CMYKcmyk(48%, 77.2%, 0%, 51.8%)
CIE-LABlab(21.40, 39.04, -47.40)
CIE-LCHlch(21.40, 61.41, 309.47°)
OKLaboklab(33.99% 0.0613 -0.1359)
OKLCHoklch(33.99% 0.149 294.3)
XYZxyz(6.1038, 3.3504, 19.0601)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C7B #577B1C
analogous
#1C277B #401C7B #701C7B
triadic
#401C7B #7B401C #1C7B40
tetradic
#401C7B #7B1C27 #577B1C #1C7B70
square
#401C7B #7B1C27 #577B1C #1C7B70
split-complementary
#401C7B #7B701C #277B1C
monochromatic
#0D0619 #261149 #401C7B #5A27AD #773ED3

Accessibility & contrast

On white

12.57
#401C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401C7B
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C7B#FFFFFF#000000##FFFFFF
##401C7B1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401c7b;
/* rgb */ color: rgb(64, 28, 123);
/* oklch */ color: oklch(34.0% 0.149 294.3);
Tailwind
colors: {
  custom: {
    50: '#7b5ca2',
    500: '#401c7b',
    950: '#000000',
  },
}
SCSS
$custom: #401c7b;
$custom-light: #7b5ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#401c7b",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 123
  },
  "hsl": {
    "h": 262.737,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3399,
    "c": 0.14906,
    "h": 294.3
  },
  "luminance": 0.03351
}

Semantic roles & 50–950 ramp

primary
#401C7B
secondary
#86AF44
accent
#E642A8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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