#401E9F#401E9F

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

Color values

HEX#401E9F
RGBrgb(64, 30, 159)
HSLhsl(256, 68%, 37%)
HSVhsv(256, 81%, 62%)
CMYKcmyk(59.7%, 81.1%, 0%, 37.6%)
CIE-LABlab(25.32, 48.37, -63.37)
CIE-LCHlch(25.32, 79.72, 307.36°)
OKLaboklab(37.82% 0.0488 -0.1826)
OKLCHoklch(37.82% 0.189 285)
XYZxyz(8.8347, 4.5212, 33.2013)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E9F #7D9F1E
analogous
#1E3D9F #401E9F #811E9F
triadic
#401E9F #9F401E #1E9F40
tetradic
#401E9F #9F1E3D #7D9F1E #1E9F81
square
#401E9F #9F1E3D #7D9F1E #1E9F81
split-complementary
#401E9F #9F811E #3D9F1E
monochromatic
#170B38 #2B146C #401E9F #5528D2 #7C58DF

Accessibility & contrast

On white

11.03
#401E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#401E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E9F
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E9F#FFFFFF#000000##FFFFFF
##401E9F1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00389D
Tritanopia (blue-blind)
#05455F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #401e9f;
/* rgb */ color: rgb(64, 30, 159);
/* oklch */ color: oklch(37.8% 0.189 285.0);
Tailwind
colors: {
  custom: {
    50: '#815fbd',
    500: '#401e9f',
    950: '#000000',
  },
}
SCSS
$custom: #401e9f;
$custom-light: #815fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#401e9f",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 159
  },
  "hsl": {
    "h": 255.814,
    "s": 68.254,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3782,
    "c": 0.18901,
    "h": 285
  },
  "luminance": 0.04522
}

Semantic roles & 50–950 ramp

primary
#401E9F
secondary
#A6C356
accent
#EB3DBD
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #401E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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