#3F1971#3F1971

#3F1971 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.141 H 297.6°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#3F1971
RGBrgb(63, 25, 113)
HSLhsl(266, 64%, 27%)
HSVhsv(266, 78%, 44%)
CMYKcmyk(44.2%, 77.9%, 0%, 55.7%)
CIE-LABlab(19.82, 37.55, -43.57)
CIE-LCHlch(19.82, 57.52, 310.76°)
OKLaboklab(32.57% 0.0652 -0.1246)
OKLCHoklch(32.57% 0.141 297.6)
XYZxyz(5.3774, 2.9442, 15.9046)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1971 #4B7119
analogous
#191F71 #3F1971 #6B1971
triadic
#3F1971 #713F19 #19713F
tetradic
#3F1971 #71191F #4B7119 #19716B
square
#3F1971 #71191F #4B7119 #19716B
split-complementary
#3F1971 #716B19 #1F7119
monochromatic
#0E0619 #230E3F #3F1971 #5B24A3 #7733D2

Accessibility & contrast

On white

13.22
#3F1971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3F1971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1971
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1971#FFFFFF#000000##FFFFFF
##3F19711.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#002F6F
Tritanopia (blue-blind)
#323044
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3f1971;
/* rgb */ color: rgb(63, 25, 113);
/* oklch */ color: oklch(32.6% 0.141 297.6);
Tailwind
colors: {
  custom: {
    50: '#7a5a9b',
    500: '#3f1971',
    950: '#000000',
  },
}
SCSS
$custom: #3f1971;
$custom-light: #7a5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1971",
  "rgb": {
    "r": 63,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 265.909,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.32567,
    "c": 0.14065,
    "h": 297.6
  },
  "luminance": 0.02944
}

Semantic roles & 50–950 ramp

primary
#3F1971
secondary
#7AA640
accent
#E7419F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1971

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

Preview Lab → · Contrast checker → · Palette generator →

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