#3F1371#3F1371

#3F1371 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.147 H 298.6°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#3F1371
RGBrgb(63, 19, 113)
HSLhsl(268, 71%, 26%)
HSVhsv(268, 83%, 44%)
CMYKcmyk(44.2%, 83.2%, 0%, 55.7%)
CIE-LABlab(18.86, 40.30, -45.14)
CIE-LCHlch(18.86, 60.51, 311.76°)
OKLaboklab(31.9% 0.0705 -0.1292)
OKLCHoklch(31.9% 0.147 298.6)
XYZxyz(5.2626, 2.7147, 15.8663)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1371 #457113
analogous
#131671 #3F1371 #6E1371
triadic
#3F1371 #713F13 #13713F
tetradic
#3F1371 #711316 #457113 #13716E
square
#3F1371 #711316 #457113 #13716E
split-complementary
#3F1371 #716E13 #167113
monochromatic
#0F041A #220A3D #3F1371 #5C1CA5 #7925DA

Accessibility & contrast

On white

13.61
#3F1371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3F1371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1371
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1371#FFFFFF#000000##FFFFFF
##3F13711.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#322D42
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3f1371;
/* rgb */ color: rgb(63, 19, 113);
/* oklch */ color: oklch(31.9% 0.147 298.6);
Tailwind
colors: {
  custom: {
    50: '#7a579b',
    500: '#3f1371',
    950: '#000000',
  },
}
SCSS
$custom: #3f1371;
$custom-light: #7a579b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1371",
  "rgb": {
    "r": 63,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 268.085,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31898,
    "c": 0.14719,
    "h": 298.6
  },
  "luminance": 0.02715
}

Semantic roles & 50–950 ramp

primary
#3F1371
secondary
#73A838
accent
#EE3A9A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3F1371

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

Preview Lab → · Contrast checker → · Palette generator →

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