#3F1E7F#3F1E7F

#3F1E7F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.152 H 292.0°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#3F1E7F
RGBrgb(63, 30, 127)
HSLhsl(260, 62%, 31%)
HSVhsv(260, 76%, 50%)
CMYKcmyk(50.4%, 76.4%, 0%, 50.2%)
CIE-LABlab(22.01, 39.00, -48.95)
CIE-LCHlch(22.01, 62.58, 308.54°)
OKLaboklab(34.51% 0.0568 -0.1405)
OKLCHoklch(34.51% 0.152 292)
XYZxyz(6.3439, 3.5174, 20.4192)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1E7F #5E7F1E
analogous
#1E2E7F #3F1E7F #6F1E7F
triadic
#3F1E7F #7F3F1E #1E7F3F
tetradic
#3F1E7F #7F1E2E #5E7F1E #1E7F6F
square
#3F1E7F #7F1E2E #5E7F1E #1E7F6F
split-complementary
#3F1E7F #7F6F1E #2E7F1E
monochromatic
#0E071C #26124D #3F1E7F #582AB1 #7544D3

Accessibility & contrast

On white

12.33
#3F1E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3F1E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1E7F
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1E7F#FFFFFF#000000##FFFFFF
##3F1E7F1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#2A384D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f1e7f;
/* rgb */ color: rgb(63, 30, 127);
/* oklch */ color: oklch(34.5% 0.152 292.0);
Tailwind
colors: {
  custom: {
    50: '#7b5da5',
    500: '#3f1e7f',
    950: '#000000',
  },
}
SCSS
$custom: #3f1e7f;
$custom-light: #7b5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1e7f",
  "rgb": {
    "r": 63,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 260.412,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34508,
    "c": 0.15152,
    "h": 292
  },
  "luminance": 0.03518
}

Semantic roles & 50–950 ramp

primary
#3F1E7F
secondary
#8EB247
accent
#E543AE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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