#3F1E71#3F1E71

#3F1E71 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.2% C 0.134 H 296.5°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#3F1E71
RGBrgb(63, 30, 113)
HSLhsl(264, 58%, 28%)
HSVhsv(264, 73%, 44%)
CMYKcmyk(44.2%, 73.5%, 0%, 55.7%)
CIE-LABlab(20.74, 34.96, -42.07)
CIE-LCHlch(20.74, 54.70, 309.73°)
OKLaboklab(33.22% 0.06 -0.1203)
OKLCHoklch(33.22% 0.134 296.5)
XYZxyz(5.4940, 3.1774, 15.9434)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1E71 #50711E
analogous
#1E2771 #3F1E71 #681E71
triadic
#3F1E71 #713F1E #1E713F
tetradic
#3F1E71 #711E27 #50711E #1E7168
square
#3F1E71 #711E27 #50711E #1E7168
split-complementary
#3F1E71 #71681E #27711E
monochromatic
#0D0618 #241141 #3F1E71 #5A2BA1 #763ECC

Accessibility & contrast

On white

12.84
#3F1E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3F1E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1E71
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1E71#FFFFFF#000000##FFFFFF
##3F1E711.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#00316F
Tritanopia (blue-blind)
#323345
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f1e71;
/* rgb */ color: rgb(63, 30, 113);
/* oklch */ color: oklch(33.2% 0.134 296.5);
Tailwind
colors: {
  custom: {
    50: '#795d9b',
    500: '#3f1e71',
    950: '#000000',
  },
}
SCSS
$custom: #3f1e71;
$custom-light: #795d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1e71",
  "rgb": {
    "r": 63,
    "g": 30,
    "b": 113
  },
  "hsl": {
    "h": 263.855,
    "s": 58.042,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3322,
    "c": 0.13441,
    "h": 296.5
  },
  "luminance": 0.03178
}

Semantic roles & 50–950 ramp

primary
#3F1E71
secondary
#7FA546
accent
#E147A4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3F1E71

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

Preview Lab → · Contrast checker → · Palette generator →

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