#3F1B7F#3F1B7F

#3F1B7F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.155 H 292.6°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#3F1B7F
RGBrgb(63, 27, 127)
HSLhsl(262, 65%, 30%)
HSVhsv(262, 79%, 50%)
CMYKcmyk(50.4%, 78.7%, 0%, 50.2%)
CIE-LABlab(21.48, 40.50, -49.81)
CIE-LCHlch(21.48, 64.20, 309.11°)
OKLaboklab(34.14% 0.0595 -0.143)
OKLCHoklch(34.14% 0.155 292.6)
XYZxyz(6.2715, 3.3727, 20.3951)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1B7F #5B7F1B
analogous
#1B297F #3F1B7F #711B7F
triadic
#3F1B7F #7F3F1B #1B7F3F
tetradic
#3F1B7F #7F1B29 #5B7F1B #1B7F71
square
#3F1B7F #7F1B29 #5B7F1B #1B7F71
split-complementary
#3F1B7F #7F711B #297F1B
monochromatic
#0D061A #26104D #3F1B7F #5826B1 #753ED6

Accessibility & contrast

On white

12.54
#3F1B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3F1B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1B7F
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1B7F#FFFFFF#000000##FFFFFF
##3F1B7F1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f1b7f;
/* rgb */ color: rgb(63, 27, 127);
/* oklch */ color: oklch(34.1% 0.155 292.6);
Tailwind
colors: {
  custom: {
    50: '#7b5ca5',
    500: '#3f1b7f',
    950: '#000000',
  },
}
SCSS
$custom: #3f1b7f;
$custom-light: #7b5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1b7f",
  "rgb": {
    "r": 63,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 261.6,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34137,
    "c": 0.15485,
    "h": 292.6
  },
  "luminance": 0.03373
}

Semantic roles & 50–950 ramp

primary
#3F1B7F
secondary
#8BB343
accent
#E840AB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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