#401340#401340

#401340 is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.0% C 0.094 H 327.7°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#401340
RGBrgb(64, 19, 64)
HSLhsl(300, 54%, 16%)
HSVhsv(300, 70%, 25%)
CMYKcmyk(0%, 70.3%, 0%, 74.9%)
CIE-LABlab(15.09, 28.63, -18.24)
CIE-LCHlch(15.09, 33.95, 327.50°)
OKLaboklab(28.02% 0.0798 -0.0504)
OKLCHoklch(28.02% 0.094 327.7)
XYZxyz(3.2726, 1.9261, 5.0489)
Luminance0.0193 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401340 #134013
analogous
#2A1340 #401340 #40132A
triadic
#401340 #404013 #134040
tetradic
#401340 #402A13 #134013 #132A40
square
#401340 #402A13 #134013 #132A40
split-complementary
#401340 #2A4013 #13402A
monochromatic
#180718 #180718 #401340 #6F216F #9E2F9E

Accessibility & contrast

On white

15.16
#401340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#401340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401340
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401340#FFFFFF#000000##FFFFFF
##4013401.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2241
Deuteranopia (green-blind)
#1E283F
Tritanopia (blue-blind)
#421927
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #401340;
/* rgb */ color: rgb(64, 19, 64);
/* oklch */ color: oklch(28.0% 0.094 327.7);
Tailwind
colors: {
  custom: {
    50: '#775475',
    500: '#401340',
    950: '#000000',
  },
}
SCSS
$custom: #401340;
$custom-light: #775475;
$custom-dark: #000000;
JSON
{
  "hex": "#401340",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 64
  },
  "hsl": {
    "h": 300,
    "s": 54.217,
    "l": 16.275
  },
  "oklch": {
    "l": 0.28023,
    "c": 0.09433,
    "h": 327.7
  },
  "luminance": 0.01926
}

Semantic roles & 50–950 ramp

primary
#401340
secondary
#367936
accent
#DE4A4A
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #401340

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

Preview Lab → · Contrast checker → · Palette generator →

#401340 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva