#401CA0#401CA0

#401CA0 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.192 H 285.0°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#401CA0
RGBrgb(64, 28, 160)
HSLhsl(256, 70%, 37%)
HSVhsv(256, 83%, 63%)
CMYKcmyk(60%, 82.5%, 0%, 37.3%)
CIE-LABlab(25.13, 49.53, -64.30)
CIE-LCHlch(25.13, 81.16, 307.61°)
OKLaboklab(37.72% 0.0496 -0.1853)
OKLCHoklch(37.72% 0.192 285)
XYZxyz(8.8728, 4.4580, 33.6438)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401CA0 #7CA01C
analogous
#1C3AA0 #401CA0 #821CA0
triadic
#401CA0 #A0401C #1CA040
tetradic
#401CA0 #A01C3A #7CA01C #1CA082
square
#401CA0 #A01C3A #7CA01C #1CA082
split-complementary
#401CA0 #A0821C #3AA01C
monochromatic
#160A38 #2B136C #401CA0 #5525D4 #7B55E1

Accessibility & contrast

On white

11.10
#401CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#401CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401CA0
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401CA0#FFFFFF#000000##FFFFFF
##401CA01.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA4
Deuteranopia (green-blind)
#00379E
Tritanopia (blue-blind)
#02455F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #401ca0;
/* rgb */ color: rgb(64, 28, 160);
/* oklch */ color: oklch(37.7% 0.192 285.0);
Tailwind
colors: {
  custom: {
    50: '#815ebd',
    500: '#401ca0',
    950: '#000000',
  },
}
SCSS
$custom: #401ca0;
$custom-light: #815ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#401ca0",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 160
  },
  "hsl": {
    "h": 256.364,
    "s": 70.213,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37718,
    "c": 0.19182,
    "h": 285
  },
  "luminance": 0.04459
}

Semantic roles & 50–950 ramp

primary
#401CA0
secondary
#A6C453
accent
#ED3BBC
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #401CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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