#401E5F#401E5F

#401E5F is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.8% C 0.112 H 304.9°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#401E5F
RGBrgb(64, 30, 95)
HSLhsl(271, 52%, 25%)
HSVhsv(271, 68%, 37%)
CMYKcmyk(32.6%, 68.4%, 0%, 62.7%)
CIE-LABlab(19.41, 30.15, -32.46)
CIE-LCHlch(19.41, 44.30, 312.89°)
OKLaboklab(31.84% 0.0641 -0.092)
OKLCHoklch(31.84% 0.112 304.9)
XYZxyz(4.6437, 2.8448, 11.1287)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E5F #3D5F1E
analogous
#201E5F #401E5F #5F1E5E
triadic
#401E5F #5F401E #1E5F40
tetradic
#401E5F #5F201E #3D5F1E #1E5E5F
square
#401E5F #5F201E #3D5F1E #1E5E5F
split-complementary
#401E5F #5E5F1E #1E5F20
monochromatic
#100717 #210F30 #401E5F #5F2D8E #7F3BBC

Accessibility & contrast

On white

13.38
#401E5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#401E5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E5F
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E5F#FFFFFF#000000##FFFFFF
##401E5F1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#0D2F5E
Tritanopia (blue-blind)
#3A2C3B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401e5f;
/* rgb */ color: rgb(64, 30, 95);
/* oklch */ color: oklch(31.8% 0.112 304.9);
Tailwind
colors: {
  custom: {
    50: '#785c8d',
    500: '#401e5f',
    950: '#000000',
  },
}
SCSS
$custom: #401e5f;
$custom-light: #785c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#401e5f",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 95
  },
  "hsl": {
    "h": 271.385,
    "s": 52,
    "l": 24.51
  },
  "oklch": {
    "l": 0.31835,
    "c": 0.11211,
    "h": 304.9
  },
  "luminance": 0.02845
}

Semantic roles & 50–950 ramp

primary
#401E5F
secondary
#6B9445
accent
#DB4C91
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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