#3F1D7D#3F1D7D

#3F1D7D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.150 H 292.8°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#3F1D7D
RGBrgb(63, 29, 125)
HSLhsl(261, 62%, 30%)
HSVhsv(261, 77%, 49%)
CMYKcmyk(49.6%, 76.8%, 0%, 51%)
CIE-LABlab(21.64, 38.93, -48.28)
CIE-LCHlch(21.64, 62.02, 308.88°)
OKLaboklab(34.19% 0.0583 -0.1385)
OKLCHoklch(34.19% 0.15 292.8)
XYZxyz(6.1899, 3.4160, 19.7313)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1D7D #5B7D1D
analogous
#1D2B7D #3F1D7D #6F1D7D
triadic
#3F1D7D #7D3F1D #1D7D3F
tetradic
#3F1D7D #7D1D2B #5B7D1D #1D7D6F
square
#3F1D7D #7D1D2B #5B7D1D #1D7D6F
split-complementary
#3F1D7D #7D6F1D #2B7D1D
monochromatic
#0D061A #26114B #3F1D7D #5829AF #7541D3

Accessibility & contrast

On white

12.48
#3F1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3F1D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1D7D
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1D7D#FFFFFF#000000##FFFFFF
##3F1D7D1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#2C374B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f1d7d;
/* rgb */ color: rgb(63, 29, 125);
/* oklch */ color: oklch(34.2% 0.150 292.8);
Tailwind
colors: {
  custom: {
    50: '#7b5da4',
    500: '#3f1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #3f1d7d;
$custom-light: #7b5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1d7d",
  "rgb": {
    "r": 63,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 261.25,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34191,
    "c": 0.15026,
    "h": 292.8
  },
  "luminance": 0.03416
}

Semantic roles & 50–950 ramp

primary
#3F1D7D
secondary
#8BB145
accent
#E542AC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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