#3F1671#3F1671

#3F1671 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.144 H 298.1°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#3F1671
RGBrgb(63, 22, 113)
HSLhsl(267, 67%, 26%)
HSVhsv(267, 81%, 44%)
CMYKcmyk(44.2%, 80.5%, 0%, 55.7%)
CIE-LABlab(19.32, 38.98, -44.39)
CIE-LCHlch(19.32, 59.08, 311.29°)
OKLaboklab(32.22% 0.068 -0.127)
OKLCHoklch(32.22% 0.144 298.1)
XYZxyz(5.3167, 2.8227, 15.8843)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1671 #487116
analogous
#161B71 #3F1671 #6D1671
triadic
#3F1671 #713F16 #16713F
tetradic
#3F1671 #71161B #487116 #16716D
square
#3F1671 #71161B #487116 #16716D
split-complementary
#3F1671 #716D16 #1B7116
monochromatic
#0E051A #220C3E #3F1671 #5C20A4 #782CD6

Accessibility & contrast

On white

13.42
#3F1671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1671
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1671#FFFFFF#000000##FFFFFF
##3F16711.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f1671;
/* rgb */ color: rgb(63, 22, 113);
/* oklch */ color: oklch(32.2% 0.144 298.1);
Tailwind
colors: {
  custom: {
    50: '#7a589b',
    500: '#3f1671',
    950: '#000000',
  },
}
SCSS
$custom: #3f1671;
$custom-light: #7a589b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1671",
  "rgb": {
    "r": 63,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 267.033,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32216,
    "c": 0.14406,
    "h": 298.1
  },
  "luminance": 0.02823
}

Semantic roles & 50–950 ramp

primary
#3F1671
secondary
#77A73C
accent
#EA3E9C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1671

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

Preview Lab → · Contrast checker → · Palette generator →

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