#3E0340#3E0340

#3E0340 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.0% C 0.115 H 326.7°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#3E0340
RGBrgb(62, 3, 64)
HSLhsl(298, 91%, 13%)
HSVhsv(298, 95%, 25%)
CMYKcmyk(3.1%, 95.3%, 0%, 74.9%)
CIE-LABlab(12.35, 34.84, -22.63)
CIE-LCHlch(12.35, 41.54, 327.00°)
OKLaboklab(25.98% 0.0961 -0.063)
OKLCHoklch(25.98% 0.115 326.7)
XYZxyz(2.9445, 1.4596, 4.9761)
Luminance0.0146 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E0340 #054003
analogous
#1F0340 #3E0340 #400323
triadic
#3E0340 #403E03 #03403E
tetradic
#3E0340 #401F03 #054003 #032340
square
#3E0340 #401F03 #054003 #032340
split-complementary
#3E0340 #234003 #03401F
monochromatic
#1C011D #1C011D #3E0340 #77067A #AF08B5

Accessibility & contrast

On white

16.26
#3E0340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#3E0340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E0340
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E0340#FFFFFF#000000##FFFFFF
##3E03401.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C42
Deuteranopia (green-blind)
#14233F
Tritanopia (blue-blind)
#400F23
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #3e0340;
/* rgb */ color: rgb(62, 3, 64);
/* oklch */ color: oklch(26.0% 0.115 326.7);
Tailwind
colors: {
  custom: {
    50: '#764d75',
    500: '#3e0340',
    950: '#000000',
  },
}
SCSS
$custom: #3e0340;
$custom-light: #764d75;
$custom-dark: #000000;
JSON
{
  "hex": "#3e0340",
  "rgb": {
    "r": 62,
    "g": 3,
    "b": 64
  },
  "hsl": {
    "h": 298.033,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.25984,
    "c": 0.11491,
    "h": 326.7
  },
  "luminance": 0.01459
}

Semantic roles & 50–950 ramp

primary
#3E0340
secondary
#20821D
accent
#FF2930
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #3E0340

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

Preview Lab → · Contrast checker → · Palette generator →

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