#3E1040#3E1040

#3E1040 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.3% C 0.098 H 326.1°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#3E1040
RGBrgb(62, 16, 64)
HSLhsl(298, 60%, 16%)
HSVhsv(298, 75%, 25%)
CMYKcmyk(3.1%, 75%, 0%, 74.9%)
CIE-LABlab(14.20, 29.52, -19.68)
CIE-LCHlch(14.20, 35.47, 326.32°)
OKLaboklab(27.31% 0.0812 -0.0545)
OKLCHoklch(27.31% 0.098 326.1)
XYZxyz(3.0972, 1.7651, 5.0271)
Luminance0.0176 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1040 #124010
analogous
#261040 #3E1040 #40102A
triadic
#3E1040 #403E10 #10403E
tetradic
#3E1040 #402610 #124010 #102A40
square
#3E1040 #402610 #124010 #102A40
split-complementary
#3E1040 #2A4010 #104026
monochromatic
#180618 #180618 #3E1040 #6D1C71 #9D28A2

Accessibility & contrast

On white

15.52
#3E1040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#3E1040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1040
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1040#FFFFFF#000000##FFFFFF
##3E10401.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082041
Deuteranopia (green-blind)
#1A263F
Tritanopia (blue-blind)
#401726
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3e1040;
/* rgb */ color: rgb(62, 16, 64);
/* oklch */ color: oklch(27.3% 0.098 326.1);
Tailwind
colors: {
  custom: {
    50: '#755375',
    500: '#3e1040',
    950: '#000000',
  },
}
SCSS
$custom: #3e1040;
$custom-light: #755375;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1040",
  "rgb": {
    "r": 62,
    "g": 16,
    "b": 64
  },
  "hsl": {
    "h": 297.5,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.27305,
    "c": 0.09783,
    "h": 326.1
  },
  "luminance": 0.01765
}

Semantic roles & 50–950 ramp

primary
#3E1040
secondary
#357A32
accent
#E3454B
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3E1040

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

Preview Lab → · Contrast checker → · Palette generator →

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