#401F9A#401F9A

#401F9A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.182 H 285.8°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#401F9A
RGBrgb(64, 31, 154)
HSLhsl(256, 66%, 36%)
HSVhsv(256, 80%, 60%)
CMYKcmyk(58.4%, 79.9%, 0%, 39.6%)
CIE-LABlab(24.96, 46.47, -60.91)
CIE-LCHlch(24.96, 76.62, 307.34°)
OKLaboklab(37.41% 0.0498 -0.1754)
OKLCHoklch(37.41% 0.182 285.8)
XYZxyz(8.4353, 4.4026, 30.9709)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401F9A #799A1F
analogous
#1F3C9A #401F9A #7E1F9A
triadic
#401F9A #9A401F #1F9A40
tetradic
#401F9A #9A1F3C #799A1F #1F9A7E
square
#401F9A #9A1F3C #799A1F #1F9A7E
split-complementary
#401F9A #9A7E1F #3C9A1F
monochromatic
#160A34 #2B1567 #401F9A #5529CD #7A56DD

Accessibility & contrast

On white

11.17
#401F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401F9A
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401F9A#FFFFFF#000000##FFFFFF
##401F9A1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9D
Deuteranopia (green-blind)
#003898
Tritanopia (blue-blind)
#11435C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #401f9a;
/* rgb */ color: rgb(64, 31, 154);
/* oklch */ color: oklch(37.4% 0.182 285.8);
Tailwind
colors: {
  custom: {
    50: '#8060b9',
    500: '#401f9a',
    950: '#000000',
  },
}
SCSS
$custom: #401f9a;
$custom-light: #8060b9;
$custom-dark: #000000;
JSON
{
  "hex": "#401f9a",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 256.098,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37411,
    "c": 0.18237,
    "h": 285.8
  },
  "luminance": 0.04403
}

Semantic roles & 50–950 ramp

primary
#401F9A
secondary
#A4C154
accent
#E93EBC
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #401F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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