#3F1C81#3F1C81

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

Color values

HEX#3F1C81
RGBrgb(63, 28, 129)
HSLhsl(261, 64%, 31%)
HSVhsv(261, 78%, 51%)
CMYKcmyk(51.2%, 78.3%, 0%, 49.4%)
CIE-LABlab(21.84, 40.58, -50.48)
CIE-LCHlch(21.84, 64.77, 308.79°)
OKLaboklab(34.45% 0.058 -0.1449)
OKLCHoklch(34.45% 0.156 291.8)
XYZxyz(6.4265, 3.4720, 21.0962)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1C81 #5E811C
analogous
#1C2B81 #3F1C81 #711C81
triadic
#3F1C81 #813F1C #1C813F
tetradic
#3F1C81 #811C2B #5E811C #1C8171
square
#3F1C81 #811C2B #5E811C #1C8171
split-complementary
#3F1C81 #81711C #2B811C
monochromatic
#0E061C #26114F #3F1C81 #5827B3 #7542D6

Accessibility & contrast

On white

12.39
#3F1C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1C81
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1C81#FFFFFF#000000##FFFFFF
##3F1C811.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00327F
Tritanopia (blue-blind)
#29384D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f1c81;
/* rgb */ color: rgb(63, 28, 129);
/* oklch */ color: oklch(34.5% 0.156 291.8);
Tailwind
colors: {
  custom: {
    50: '#7c5ca7',
    500: '#3f1c81',
    950: '#000000',
  },
}
SCSS
$custom: #3f1c81;
$custom-light: #7c5ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1c81",
  "rgb": {
    "r": 63,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 260.792,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34451,
    "c": 0.15613,
    "h": 291.8
  },
  "luminance": 0.03472
}

Semantic roles & 50–950 ramp

primary
#3F1C81
secondary
#8EB444
accent
#E740AE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1C81

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

Preview Lab → · Contrast checker → · Palette generator →

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