#3E1F91#3E1F91

#3E1F91 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.172 H 286.7°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#3E1F91
RGBrgb(62, 31, 145)
HSLhsl(256, 65%, 35%)
HSVhsv(256, 79%, 57%)
CMYKcmyk(57.2%, 78.6%, 0%, 43.1%)
CIE-LABlab(23.83, 43.60, -57.23)
CIE-LCHlch(23.83, 71.95, 307.30°)
OKLaboklab(36.3% 0.0494 -0.1648)
OKLCHoklch(36.3% 0.172 286.7)
XYZxyz(7.5859, 4.0480, 27.1642)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F91 #72911F
analogous
#1F3991 #3E1F91 #771F91
triadic
#3E1F91 #913E1F #1F913E
tetradic
#3E1F91 #911F39 #72911F #1F9177
square
#3E1F91 #911F39 #72911F #1F9177
split-complementary
#3E1F91 #91771F #39911F
monochromatic
#13092C #28145F #3E1F91 #542AC3 #7651DA

Accessibility & contrast

On white

11.60
#3E1F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3E1F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F91
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F91#FFFFFF#000000##FFFFFF
##3E1F911.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00358F
Tritanopia (blue-blind)
#174057
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3e1f91;
/* rgb */ color: rgb(62, 31, 145);
/* oklch */ color: oklch(36.3% 0.172 286.7);
Tailwind
colors: {
  custom: {
    50: '#7d5fb2',
    500: '#3e1f91',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f91;
$custom-light: #7d5fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f91",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 256.316,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36296,
    "c": 0.172,
    "h": 286.7
  },
  "luminance": 0.04048
}

Semantic roles & 50–950 ramp

primary
#3E1F91
secondary
#9FBD4F
accent
#E840BA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E1F91

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

Preview Lab → · Contrast checker → · Palette generator →

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