#401E9C#401E9C

#401E9C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.186 H 285.6°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#401E9C
RGBrgb(64, 30, 156)
HSLhsl(256, 68%, 36%)
HSVhsv(256, 81%, 61%)
CMYKcmyk(59%, 80.8%, 0%, 38.8%)
CIE-LABlab(25.01, 47.51, -62.05)
CIE-LCHlch(25.01, 78.16, 307.44°)
OKLaboklab(37.51% 0.0498 -0.1788)
OKLCHoklch(37.51% 0.186 285.6)
XYZxyz(8.5776, 4.4183, 31.8469)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E9C #7A9C1E
analogous
#1E3B9C #401E9C #7F1E9C
triadic
#401E9C #9C401E #1E9C40
tetradic
#401E9C #9C1E3B #7A9C1E #1E9C7F
square
#401E9C #9C1E3B #7A9C1E #1E9C7F
split-complementary
#401E9C #9C7F1E #3B9C1E
monochromatic
#160A35 #2B1469 #401E9C #5528CF #7B56DE

Accessibility & contrast

On white

11.15
#401E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#401E9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E9C
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E9C#FFFFFF#000000##FFFFFF
##401E9C1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9F
Deuteranopia (green-blind)
#00379A
Tritanopia (blue-blind)
#0D445D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #401e9c;
/* rgb */ color: rgb(64, 30, 156);
/* oklch */ color: oklch(37.5% 0.186 285.6);
Tailwind
colors: {
  custom: {
    50: '#815fba',
    500: '#401e9c',
    950: '#000000',
  },
}
SCSS
$custom: #401e9c;
$custom-light: #815fba;
$custom-dark: #000000;
JSON
{
  "hex": "#401e9c",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 156
  },
  "hsl": {
    "h": 256.19,
    "s": 67.742,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37507,
    "c": 0.18557,
    "h": 285.6
  },
  "luminance": 0.04419
}

Semantic roles & 50–950 ramp

primary
#401E9C
secondary
#A4C254
accent
#EB3DBC
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #401E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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