#3E1840#3E1840

#3E1840 is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.4% C 0.084 H 325.6°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#3E1840
RGBrgb(62, 24, 64)
HSLhsl(297, 45%, 17%)
HSVhsv(297, 63%, 25%)
CMYKcmyk(3.1%, 62.5%, 0%, 74.9%)
CIE-LABlab(15.74, 25.31, -17.26)
CIE-LCHlch(15.74, 30.63, 325.71°)
OKLaboklab(28.42% 0.0695 -0.0476)
OKLCHoklch(28.42% 0.084 325.6)
XYZxyz(3.2386, 2.0477, 5.0742)
Luminance0.0205 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1840 #1A4018
analogous
#2A1840 #3E1840 #40182E
triadic
#3E1840 #403E18 #18403E
tetradic
#3E1840 #402A18 #1A4018 #182E40
square
#3E1840 #402A18 #1A4018 #182E40
split-complementary
#3E1840 #2E4018 #18402A
monochromatic
#160816 #160816 #3E1840 #69296D #943999

Accessibility & contrast

On white

14.90
#3E1840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#3E1840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1840
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1840#FFFFFF#000000##FFFFFF
##3E18401.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132441
Deuteranopia (green-blind)
#1F293F
Tritanopia (blue-blind)
#401D29
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3e1840;
/* rgb */ color: rgb(62, 24, 64);
/* oklch */ color: oklch(28.4% 0.084 325.6);
Tailwind
colors: {
  custom: {
    50: '#755775',
    500: '#3e1840',
    950: '#000000',
  },
}
SCSS
$custom: #3e1840;
$custom-light: #755775;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1840",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 64
  },
  "hsl": {
    "h": 297,
    "s": 45.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.2842,
    "c": 0.08421,
    "h": 325.6
  },
  "luminance": 0.02048
}

Semantic roles & 50–950 ramp

primary
#3E1840
secondary
#40773D
accent
#D55359
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#080308
muted
#7B787B

Preview Lab

Preview with #3E1840

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

Preview Lab → · Contrast checker → · Palette generator →

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