#3F1E97#3F1E97

#3F1E97 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.180 H 286.1°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#3F1E97
RGBrgb(63, 30, 151)
HSLhsl(256, 67%, 35%)
HSVhsv(256, 80%, 59%)
CMYKcmyk(58.3%, 80.1%, 0%, 40.8%)
CIE-LABlab(24.38, 45.95, -60.02)
CIE-LCHlch(24.38, 75.59, 307.44°)
OKLaboklab(36.89% 0.0498 -0.1729)
OKLCHoklch(36.89% 0.18 286.1)
XYZxyz(8.0984, 4.2192, 29.6598)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1E97 #76971E
analogous
#1E3997 #3F1E97 #7C1E97
triadic
#3F1E97 #973F1E #1E973F
tetradic
#3F1E97 #971E39 #76971E #1E977C
square
#3F1E97 #971E39 #76971E #1E977C
split-complementary
#3F1E97 #977C1E #39971E
monochromatic
#140A31 #2A1464 #3F1E97 #5428CA #7853DD

Accessibility & contrast

On white

11.39
#3F1E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3F1E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1E97
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1E97#FFFFFF#000000##FFFFFF
##3F1E971.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#12425A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3f1e97;
/* rgb */ color: rgb(63, 30, 151);
/* oklch */ color: oklch(36.9% 0.180 286.1);
Tailwind
colors: {
  custom: {
    50: '#7f5fb7',
    500: '#3f1e97',
    950: '#000000',
  },
}
SCSS
$custom: #3f1e97;
$custom-light: #7f5fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1e97",
  "rgb": {
    "r": 63,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 256.364,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36892,
    "c": 0.1799,
    "h": 286.1
  },
  "luminance": 0.0422
}

Semantic roles & 50–950 ramp

primary
#3F1E97
secondary
#A2C051
accent
#EA3EBB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F1E97

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

Preview Lab → · Contrast checker → · Palette generator →

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