#401139#401139

#401139 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.3% C 0.091 H 334.2°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#401139
RGBrgb(64, 17, 57)
HSLhsl(309, 58%, 16%)
HSVhsv(309, 73%, 25%)
CMYKcmyk(0%, 73.4%, 10.9%, 74.9%)
CIE-LABlab(14.32, 28.24, -14.50)
CIE-LCHlch(14.32, 31.74, 332.82°)
OKLaboklab(27.33% 0.0818 -0.0396)
OKLCHoklch(27.33% 0.091 334.2)
XYZxyz(3.0533, 1.7865, 4.0541)
Luminance0.0179 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401139 #114018
analogous
#2F1140 #401139 #401121
triadic
#401139 #394011 #113940
tetradic
#401139 #402F11 #114018 #112140
square
#401139 #402F11 #114018 #112140
split-complementary
#401139 #214011 #11402F
monochromatic
#180616 #180616 #401139 #701E64 #A12B8F

Accessibility & contrast

On white

15.47
#401139 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#401139 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401139
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401139#FFFFFF#000000##FFFFFF
##4011391.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10203A
Deuteranopia (green-blind)
#202738
Tritanopia (blue-blind)
#431423
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #401139;
/* rgb */ color: rgb(64, 17, 57);
/* oklch */ color: oklch(27.3% 0.091 334.2);
Tailwind
colors: {
  custom: {
    50: '#77536f',
    500: '#401139',
    950: '#000000',
  },
}
SCSS
$custom: #401139;
$custom-light: #77536f;
$custom-dark: #000000;
JSON
{
  "hex": "#401139",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 57
  },
  "hsl": {
    "h": 308.936,
    "s": 58.025,
    "l": 15.882
  },
  "oklch": {
    "l": 0.27329,
    "c": 0.09088,
    "h": 334.2
  },
  "luminance": 0.01786
}

Semantic roles & 50–950 ramp

primary
#401139
secondary
#33793E
accent
#E15E47
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090307
muted
#7B787A

Preview Lab

Preview with #401139

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

Preview Lab → · Contrast checker → · Palette generator →

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