#3F1987#3F1987

#3F1987 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.166 H 290.6°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#3F1987
RGBrgb(63, 25, 135)
HSLhsl(261, 69%, 31%)
HSVhsv(261, 81%, 53%)
CMYKcmyk(53.3%, 81.5%, 0%, 47.1%)
CIE-LABlab(21.95, 43.69, -54.09)
CIE-LCHlch(21.95, 69.53, 308.93°)
OKLaboklab(34.71% 0.0585 -0.1555)
OKLCHoklch(34.71% 0.166 290.6)
XYZxyz(6.7694, 3.5010, 23.2360)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1987 #618719
analogous
#192A87 #3F1987 #761987
triadic
#3F1987 #873F19 #19873F
tetradic
#3F1987 #87192A #618719 #198776
square
#3F1987 #87192A #618719 #198776
split-complementary
#3F1987 #877619 #2A8719
monochromatic
#0F0620 #270F53 #3F1987 #5723BB #753FDB

Accessibility & contrast

On white

12.35
#3F1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1987
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1987#FFFFFF#000000##FFFFFF
##3F19871.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#253950
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f1987;
/* rgb */ color: rgb(63, 25, 135);
/* oklch */ color: oklch(34.7% 0.166 290.6);
Tailwind
colors: {
  custom: {
    50: '#7d5bab',
    500: '#3f1987',
    950: '#000000',
  },
}
SCSS
$custom: #3f1987;
$custom-light: #7d5bab;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1987",
  "rgb": {
    "r": 63,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 260.727,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34705,
    "c": 0.16613,
    "h": 290.6
  },
  "luminance": 0.03501
}

Semantic roles & 50–950 ramp

primary
#3F1987
secondary
#91BA41
accent
#EC3CAF
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #3F1987

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

Preview Lab → · Contrast checker → · Palette generator →

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