#401A7C#401A7C

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

Color values

HEX#401A7C
RGBrgb(64, 26, 124)
HSLhsl(263, 65%, 29%)
HSVhsv(263, 79%, 49%)
CMYKcmyk(48.4%, 79%, 0%, 51.4%)
CIE-LABlab(21.15, 40.30, -48.45)
CIE-LCHlch(21.15, 63.02, 309.75°)
OKLaboklab(33.84% 0.0628 -0.1389)
OKLCHoklch(33.84% 0.152 294.3)
XYZxyz(6.1208, 3.2838, 19.3762)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A7C #567C1A
analogous
#1A257C #401A7C #711A7C
triadic
#401A7C #7C401A #1A7C40
tetradic
#401A7C #7C1A25 #567C1A #1A7C71
square
#401A7C #7C1A25 #567C1A #1A7C71
split-complementary
#401A7C #7C711A #257C1A
monochromatic
#0D0519 #260F49 #401A7C #5A25AF #773BD6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##401A7C#FFFFFF#000000##FFFFFF
##401A7C1.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)
#00347F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#2E354A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #401a7c;
/* rgb */ color: rgb(64, 26, 124);
/* oklch */ color: oklch(33.8% 0.152 294.3);
Tailwind
colors: {
  custom: {
    50: '#7c5ba3',
    500: '#401a7c',
    950: '#000000',
  },
}
SCSS
$custom: #401a7c;
$custom-light: #7c5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#401a7c",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 263.265,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33844,
    "c": 0.15246,
    "h": 294.3
  },
  "luminance": 0.03284
}

Semantic roles & 50–950 ramp

primary
#401A7C
secondary
#85B042
accent
#E840A7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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