#3F1F71#3F1F71

#3F1F71 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.133 H 296.3°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#3F1F71
RGBrgb(63, 31, 113)
HSLhsl(263, 57%, 28%)
HSVhsv(263, 73%, 44%)
CMYKcmyk(44.2%, 72.6%, 0%, 55.7%)
CIE-LABlab(20.94, 34.41, -41.75)
CIE-LCHlch(20.94, 54.10, 309.50°)
OKLaboklab(33.36% 0.0589 -0.1193)
OKLCHoklch(33.36% 0.133 296.3)
XYZxyz(5.5197, 3.2289, 15.9520)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1F71 #51711F
analogous
#1F2871 #3F1F71 #681F71
triadic
#3F1F71 #713F1F #1F713F
tetradic
#3F1F71 #711F28 #51711F #1F7168
square
#3F1F71 #711F28 #51711F #1F7168
split-complementary
#3F1F71 #71681F #28711F
monochromatic
#0D0718 #241241 #3F1F71 #5A2CA1 #7640CB

Accessibility & contrast

On white

12.76
#3F1F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3F1F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1F71
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1F71#FFFFFF#000000##FFFFFF
##3F1F711.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f1f71;
/* rgb */ color: rgb(63, 31, 113);
/* oklch */ color: oklch(33.4% 0.133 296.3);
Tailwind
colors: {
  custom: {
    50: '#795d9a',
    500: '#3f1f71',
    950: '#000000',
  },
}
SCSS
$custom: #3f1f71;
$custom-light: #795d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1f71",
  "rgb": {
    "r": 63,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 263.415,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3336,
    "c": 0.13308,
    "h": 296.3
  },
  "luminance": 0.03229
}

Semantic roles & 50–950 ramp

primary
#3F1F71
secondary
#80A547
accent
#E048A5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3F1F71

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

Preview Lab → · Contrast checker → · Palette generator →

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