#3F1D72#3F1D72

#3F1D72 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.2% C 0.137 H 296.4°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#3F1D72
RGBrgb(63, 29, 114)
HSLhsl(264, 59%, 28%)
HSVhsv(264, 75%, 45%)
CMYKcmyk(44.7%, 74.6%, 0%, 55.3%)
CIE-LABlab(20.64, 35.78, -42.88)
CIE-LCHlch(20.64, 55.85, 309.84°)
OKLaboklab(33.17% 0.0609 -0.1226)
OKLCHoklch(33.17% 0.137 296.4)
XYZxyz(5.5257, 3.1503, 16.2333)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1D72 #50721D
analogous
#1D2572 #3F1D72 #691D72
triadic
#3F1D72 #723F1D #1D723F
tetradic
#3F1D72 #721D25 #50721D #1D7269
square
#3F1D72 #721D25 #50721D #1D7269
split-complementary
#3F1D72 #72691D #25721D
monochromatic
#0D0618 #241141 #3F1D72 #5A29A3 #763CCD

Accessibility & contrast

On white

12.88
#3F1D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3F1D72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1D72
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1D72#FFFFFF#000000##FFFFFF
##3F1D721.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#323245
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f1d72;
/* rgb */ color: rgb(63, 29, 114);
/* oklch */ color: oklch(33.2% 0.137 296.4);
Tailwind
colors: {
  custom: {
    50: '#795c9b',
    500: '#3f1d72',
    950: '#000000',
  },
}
SCSS
$custom: #3f1d72;
$custom-light: #795c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1d72",
  "rgb": {
    "r": 63,
    "g": 29,
    "b": 114
  },
  "hsl": {
    "h": 264,
    "s": 59.441,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33172,
    "c": 0.13693,
    "h": 296.4
  },
  "luminance": 0.0315
}

Semantic roles & 50–950 ramp

primary
#3F1D72
secondary
#7FA645
accent
#E345A4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1D72

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

Preview Lab → · Contrast checker → · Palette generator →

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