#3E1B4E#3E1B4E

#3E1B4E is a dark, moderate purple. Relative luminance 0.024; OKLCH L 29.8% C 0.095 H 313.8°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#3E1B4E
RGBrgb(62, 27, 78)
HSLhsl(281, 49%, 21%)
HSVhsv(281, 65%, 31%)
CMYKcmyk(20.5%, 65.4%, 0%, 69.4%)
CIE-LABlab(17.26, 26.89, -24.50)
CIE-LCHlch(17.26, 36.37, 317.66°)
OKLaboklab(29.83% 0.0659 -0.0687)
OKLCHoklch(29.83% 0.095 313.8)
XYZxyz(3.7535, 2.3582, 7.4637)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1B4E #2B4E1B
analogous
#241B4E #3E1B4E #4E1B44
triadic
#3E1B4E #4E3E1B #1B4E3E
tetradic
#3E1B4E #4E241B #2B4E1B #1B444E
square
#3E1B4E #4E241B #2B4E1B #1B444E
split-complementary
#3E1B4E #444E1B #1B4E24
monochromatic
#120817 #1A0B21 #3E1B4E #622B7B #863AA9

Accessibility & contrast

On white

14.27
#3E1B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3E1B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1B4E
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1B4E#FFFFFF#000000##FFFFFF
##3E1B4E1.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2850
Deuteranopia (green-blind)
#192B4D
Tritanopia (blue-blind)
#3D2431
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3e1b4e;
/* rgb */ color: rgb(62, 27, 78);
/* oklch */ color: oklch(29.8% 0.095 313.8);
Tailwind
colors: {
  custom: {
    50: '#755980',
    500: '#3e1b4e',
    950: '#000000',
  },
}
SCSS
$custom: #3e1b4e;
$custom-light: #755980;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1b4e",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 281.176,
    "s": 48.571,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29825,
    "c": 0.09517,
    "h": 313.8
  },
  "luminance": 0.02358
}

Semantic roles & 50–950 ramp

primary
#3E1B4E
secondary
#568441
accent
#D8507A
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08040A
muted
#7B797C

Preview Lab

Preview with #3E1B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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