#3F1E91#3F1E91

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

Color values

HEX#3F1E91
RGBrgb(63, 30, 145)
HSLhsl(257, 66%, 34%)
HSVhsv(257, 79%, 57%)
CMYKcmyk(56.6%, 79.3%, 0%, 43.1%)
CIE-LABlab(23.77, 44.22, -57.33)
CIE-LCHlch(23.77, 72.40, 307.64°)
OKLaboklab(36.28% 0.0517 -0.165)
OKLCHoklch(36.28% 0.173 287.4)
XYZxyz(7.6235, 4.0292, 27.1586)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1E91 #70911E
analogous
#1E3791 #3F1E91 #791E91
triadic
#3F1E91 #913F1E #1E913F
tetradic
#3F1E91 #911E37 #70911E #1E9179
square
#3F1E91 #911E37 #70911E #1E9179
split-complementary
#3F1E91 #91791E #37911E
monochromatic
#13092C #29145E #3F1E91 #5528C4 #774FDB

Accessibility & contrast

On white

11.63
#3F1E91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1E91
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1E91#FFFFFF#000000##FFFFFF
##3F1E911.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f1e91;
/* rgb */ color: rgb(63, 30, 145);
/* oklch */ color: oklch(36.3% 0.173 287.4);
Tailwind
colors: {
  custom: {
    50: '#7e5eb2',
    500: '#3f1e91',
    950: '#000000',
  },
}
SCSS
$custom: #3f1e91;
$custom-light: #7e5eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1e91",
  "rgb": {
    "r": 63,
    "g": 30,
    "b": 145
  },
  "hsl": {
    "h": 257.217,
    "s": 65.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36278,
    "c": 0.17292,
    "h": 287.4
  },
  "luminance": 0.0403
}

Semantic roles & 50–950 ramp

primary
#3F1E91
secondary
#9DBD4D
accent
#E93FB8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F1E91

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

Preview Lab → · Contrast checker → · Palette generator →

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