#3E1440#3E1440

#3E1440 is a dark, moderate purple. Relative luminance 0.019; OKLCH L 27.8% C 0.091 H 325.9°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#3E1440
RGBrgb(62, 20, 64)
HSLhsl(297, 52%, 16%)
HSVhsv(297, 69%, 25%)
CMYKcmyk(3.1%, 68.8%, 0%, 74.9%)
CIE-LABlab(14.93, 27.51, -18.53)
CIE-LCHlch(14.93, 33.17, 326.04°)
OKLaboklab(27.83% 0.0756 -0.0513)
OKLCHoklch(27.83% 0.091 325.9)
XYZxyz(3.1621, 1.8948, 5.0487)
Luminance0.0190 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1440 #164014
analogous
#281440 #3E1440 #40142C
triadic
#3E1440 #403E14 #14403E
tetradic
#3E1440 #402814 #164014 #142C40
square
#3E1440 #402814 #164014 #142C40
split-complementary
#3E1440 #2C4014 #144028
monochromatic
#170717 #170717 #3E1440 #6B236F #98319D

Accessibility & contrast

On white

15.23
#3E1440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#3E1440 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1440
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1440#FFFFFF#000000##FFFFFF
##3E14401.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2241
Deuteranopia (green-blind)
#1D273F
Tritanopia (blue-blind)
#401A27
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3e1440;
/* rgb */ color: rgb(62, 20, 64);
/* oklch */ color: oklch(27.8% 0.091 325.9);
Tailwind
colors: {
  custom: {
    50: '#755575',
    500: '#3e1440',
    950: '#000000',
  },
}
SCSS
$custom: #3e1440;
$custom-light: #755575;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1440",
  "rgb": {
    "r": 62,
    "g": 20,
    "b": 64
  },
  "hsl": {
    "h": 297.273,
    "s": 52.381,
    "l": 16.471
  },
  "oklch": {
    "l": 0.27828,
    "c": 0.09135,
    "h": 325.9
  },
  "luminance": 0.01895
}

Semantic roles & 50–950 ramp

primary
#3E1440
secondary
#3B7838
accent
#DC4C53
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#080308
muted
#7B787B

Preview Lab

Preview with #3E1440

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

Preview Lab → · Contrast checker → · Palette generator →

#3E1440 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva