#3E1D71#3E1D71

#3E1D71 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.136 H 296.0°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#3E1D71
RGBrgb(62, 29, 113)
HSLhsl(264, 59%, 28%)
HSVhsv(264, 74%, 44%)
CMYKcmyk(45.1%, 74.3%, 0%, 55.7%)
CIE-LABlab(20.42, 35.30, -42.60)
CIE-LCHlch(20.42, 55.32, 309.65°)
OKLaboklab(32.96% 0.0595 -0.1218)
OKLCHoklch(32.96% 0.136 296)
XYZxyz(5.4058, 3.0950, 15.9322)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1D71 #50711D
analogous
#1D2671 #3E1D71 #681D71
triadic
#3E1D71 #713E1D #1D713E
tetradic
#3E1D71 #711D26 #50711D #1D7168
square
#3E1D71 #711D26 #50711D #1D7168
split-complementary
#3E1D71 #71681D #26711D
monochromatic
#0D0618 #231140 #3E1D71 #5929A2 #753CCD

Accessibility & contrast

On white

12.97
#3E1D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1D71
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1D71#FFFFFF#000000##FFFFFF
##3E1D711.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#00306F
Tritanopia (blue-blind)
#303245
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e1d71;
/* rgb */ color: rgb(62, 29, 113);
/* oklch */ color: oklch(33.0% 0.136 296.0);
Tailwind
colors: {
  custom: {
    50: '#795c9b',
    500: '#3e1d71',
    950: '#000000',
  },
}
SCSS
$custom: #3e1d71;
$custom-light: #795c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1d71",
  "rgb": {
    "r": 62,
    "g": 29,
    "b": 113
  },
  "hsl": {
    "h": 263.571,
    "s": 59.155,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32963,
    "c": 0.13561,
    "h": 296
  },
  "luminance": 0.03095
}

Semantic roles & 50–950 ramp

primary
#3E1D71
secondary
#7FA544
accent
#E245A5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3E1D71

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

Preview Lab → · Contrast checker → · Palette generator →

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