#3E0840#3E0840

#3E0840 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.5% C 0.109 H 326.5°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#3E0840
RGBrgb(62, 8, 64)
HSLhsl(298, 78%, 14%)
HSVhsv(298, 88%, 25%)
CMYKcmyk(3.1%, 87.5%, 0%, 74.9%)
CIE-LABlab(13.04, 32.84, -21.53)
CIE-LCHlch(13.04, 39.27, 326.75°)
OKLaboklab(26.47% 0.0905 -0.0599)
OKLCHoklch(26.47% 0.109 326.5)
XYZxyz(2.9988, 1.5682, 4.9942)
Luminance0.0157 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E0840 #0A4008
analogous
#220840 #3E0840 #400826
triadic
#3E0840 #403E08 #08403E
tetradic
#3E0840 #402208 #0A4008 #082640
square
#3E0840 #402208 #0A4008 #082640
split-complementary
#3E0840 #264008 #084022
monochromatic
#1A031B #1A031B #3E0840 #730F76 #A716AD

Accessibility & contrast

On white

15.99
#3E0840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#3E0840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E0840
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E0840#FFFFFF#000000##FFFFFF
##3E08401.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D41
Deuteranopia (green-blind)
#16243F
Tritanopia (blue-blind)
#401224
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #3e0840;
/* rgb */ color: rgb(62, 8, 64);
/* oklch */ color: oklch(26.5% 0.109 326.5);
Tailwind
colors: {
  custom: {
    50: '#764f75',
    500: '#3e0840',
    950: '#000000',
  },
}
SCSS
$custom: #3e0840;
$custom-light: #764f75;
$custom-dark: #000000;
JSON
{
  "hex": "#3e0840",
  "rgb": {
    "r": 62,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 297.857,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.26469,
    "c": 0.10851,
    "h": 326.5
  },
  "luminance": 0.01568
}

Semantic roles & 50–950 ramp

primary
#3E0840
secondary
#287E25
accent
#F4343A
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #3E0840

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

Preview Lab → · Contrast checker → · Palette generator →

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