#3F1F97#3F1F97

#3F1F97 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.179 H 285.9°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#3F1F97
RGBrgb(63, 31, 151)
HSLhsl(256, 66%, 36%)
HSVhsv(256, 79%, 59%)
CMYKcmyk(58.3%, 79.5%, 0%, 40.8%)
CIE-LABlab(24.55, 45.48, -59.75)
CIE-LCHlch(24.55, 75.09, 307.28°)
OKLaboklab(37% 0.0491 -0.1721)
OKLCHoklch(37% 0.179 285.9)
XYZxyz(8.1241, 4.2706, 29.6684)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1F97 #77971F
analogous
#1F3B97 #3F1F97 #7B1F97
triadic
#3F1F97 #973F1F #1F973F
tetradic
#3F1F97 #971F3B #77971F #1F977B
square
#3F1F97 #971F3B #77971F #1F977B
split-complementary
#3F1F97 #977B1F #3B971F
monochromatic
#150A31 #2A1564 #3F1F97 #5429CA #7954DC

Accessibility & contrast

On white

11.33
#3F1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3F1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1F97
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1F97#FFFFFF#000000##FFFFFF
##3F1F971.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f1f97;
/* rgb */ color: rgb(63, 31, 151);
/* oklch */ color: oklch(37.0% 0.179 285.9);
Tailwind
colors: {
  custom: {
    50: '#7f5fb7',
    500: '#3f1f97',
    950: '#000000',
  },
}
SCSS
$custom: #3f1f97;
$custom-light: #7f5fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1f97",
  "rgb": {
    "r": 63,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 256,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37005,
    "c": 0.17897,
    "h": 285.9
  },
  "luminance": 0.04271
}

Semantic roles & 50–950 ramp

primary
#3F1F97
secondary
#A2BF52
accent
#E93FBC
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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