#3F1571#3F1571

#3F1571 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.145 H 298.3°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#3F1571
RGBrgb(63, 21, 113)
HSLhsl(267, 69%, 26%)
HSVhsv(267, 81%, 44%)
CMYKcmyk(44.2%, 81.4%, 0%, 55.7%)
CIE-LABlab(19.16, 39.43, -44.65)
CIE-LCHlch(19.16, 59.57, 311.45°)
OKLaboklab(32.11% 0.0689 -0.1278)
OKLCHoklch(32.11% 0.145 298.3)
XYZxyz(5.2979, 2.7853, 15.8781)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1571 #477115
analogous
#151971 #3F1571 #6D1571
triadic
#3F1571 #713F15 #15713F
tetradic
#3F1571 #711519 #477115 #15716D
square
#3F1571 #711519 #477115 #15716D
split-complementary
#3F1571 #716D15 #197115
monochromatic
#0E051A #220B3D #3F1571 #5C1FA5 #7929D7

Accessibility & contrast

On white

13.49
#3F1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3F1571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1571
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1571#FFFFFF#000000##FFFFFF
##3F15711.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#322E43
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3f1571;
/* rgb */ color: rgb(63, 21, 113);
/* oklch */ color: oklch(32.1% 0.145 298.3);
Tailwind
colors: {
  custom: {
    50: '#7a589b',
    500: '#3f1571',
    950: '#000000',
  },
}
SCSS
$custom: #3f1571;
$custom-light: #7a589b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1571",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 267.391,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32106,
    "c": 0.14514,
    "h": 298.3
  },
  "luminance": 0.02785
}

Semantic roles & 50–950 ramp

primary
#3F1571
secondary
#76A73B
accent
#EB3C9C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3F1571

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

Preview Lab → · Contrast checker → · Palette generator →

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