#3E1D72#3E1D72

#3E1D72 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.137 H 295.7°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#3E1D72
RGBrgb(62, 29, 114)
HSLhsl(263, 59%, 28%)
HSVhsv(263, 75%, 45%)
CMYKcmyk(45.6%, 74.6%, 0%, 55.3%)
CIE-LABlab(20.51, 35.59, -43.10)
CIE-LCHlch(20.51, 55.89, 309.55°)
OKLaboklab(33.05% 0.0593 -0.1233)
OKLCHoklch(33.05% 0.137 295.7)
XYZxyz(5.4624, 3.1176, 16.2303)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1D72 #51721D
analogous
#1D2672 #3E1D72 #681D72
triadic
#3E1D72 #723E1D #1D723E
tetradic
#3E1D72 #721D26 #51721D #1D7268
square
#3E1D72 #721D26 #51721D #1D7268
split-complementary
#3E1D72 #72681D #26721D
monochromatic
#0D0618 #231141 #3E1D72 #5929A3 #743CCD

Accessibility & contrast

On white

12.93
#3E1D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3E1D72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1D72
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1D72#FFFFFF#000000##FFFFFF
##3E1D721.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#003070
Tritanopia (blue-blind)
#303245
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e1d72;
/* rgb */ color: rgb(62, 29, 114);
/* oklch */ color: oklch(33.1% 0.137 295.7);
Tailwind
colors: {
  custom: {
    50: '#795c9b',
    500: '#3e1d72',
    950: '#000000',
  },
}
SCSS
$custom: #3e1d72;
$custom-light: #795c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1d72",
  "rgb": {
    "r": 62,
    "g": 29,
    "b": 114
  },
  "hsl": {
    "h": 263.294,
    "s": 59.441,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33053,
    "c": 0.13683,
    "h": 295.7
  },
  "luminance": 0.03118
}

Semantic roles & 50–950 ramp

primary
#3E1D72
secondary
#80A645
accent
#E345A5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3E1D72

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

Preview Lab → · Contrast checker → · Palette generator →

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