#3F1D7F#3F1D7F

#3F1D7F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.153 H 292.2°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#3F1D7F
RGBrgb(63, 29, 127)
HSLhsl(261, 63%, 31%)
HSVhsv(261, 77%, 50%)
CMYKcmyk(50.4%, 77.2%, 0%, 50.2%)
CIE-LABlab(21.83, 39.51, -49.24)
CIE-LCHlch(21.83, 63.13, 308.74°)
OKLaboklab(34.38% 0.0577 -0.1413)
OKLCHoklch(34.38% 0.153 292.2)
XYZxyz(6.3190, 3.4676, 20.4109)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1D7F #5D7F1D
analogous
#1D2C7F #3F1D7F #701D7F
triadic
#3F1D7F #7F3F1D #1D7F3F
tetradic
#3F1D7F #7F1D2C #5D7F1D #1D7F70
square
#3F1D7F #7F1D2C #5D7F1D #1D7F70
split-complementary
#3F1D7F #7F701D #2C7F1D
monochromatic
#0E061B #26124D #3F1D7F #5828B1 #7542D4

Accessibility & contrast

On white

12.40
#3F1D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3F1D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1D7F
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1D7F#FFFFFF#000000##FFFFFF
##3F1D7F1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#2A374C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f1d7f;
/* rgb */ color: rgb(63, 29, 127);
/* oklch */ color: oklch(34.4% 0.153 292.2);
Tailwind
colors: {
  custom: {
    50: '#7b5da5',
    500: '#3f1d7f',
    950: '#000000',
  },
}
SCSS
$custom: #3f1d7f;
$custom-light: #7b5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1d7f",
  "rgb": {
    "r": 63,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 260.816,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34381,
    "c": 0.15265,
    "h": 292.2
  },
  "luminance": 0.03468
}

Semantic roles & 50–950 ramp

primary
#3F1D7F
secondary
#8DB245
accent
#E642AD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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