#3F1886#3F1886

#3F1886 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.166 H 291.0°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#3F1886
RGBrgb(63, 24, 134)
HSLhsl(261, 70%, 31%)
HSVhsv(261, 82%, 53%)
CMYKcmyk(53%, 82.1%, 0%, 47.5%)
CIE-LABlab(21.69, 43.85, -53.88)
CIE-LCHlch(21.69, 69.47, 309.14°)
OKLaboklab(34.5% 0.0596 -0.1548)
OKLCHoklch(34.5% 0.166 291)
XYZxyz(6.6784, 3.4310, 22.8600)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1886 #5F8618
analogous
#182886 #3F1886 #761886
triadic
#3F1886 #863F18 #18863F
tetradic
#3F1886 #861828 #5F8618 #188676
square
#3F1886 #861828 #5F8618 #188676
split-complementary
#3F1886 #867618 #288618
monochromatic
#0E051E #270F52 #3F1886 #5721BA #753CDC

Accessibility & contrast

On white

12.45
#3F1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1886
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1886#FFFFFF#000000##FFFFFF
##3F18861.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#003284
Tritanopia (blue-blind)
#26384F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f1886;
/* rgb */ color: rgb(63, 24, 134);
/* oklch */ color: oklch(34.5% 0.166 291.0);
Tailwind
colors: {
  custom: {
    50: '#7d5baa',
    500: '#3f1886',
    950: '#000000',
  },
}
SCSS
$custom: #3f1886;
$custom-light: #7d5baa;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1886",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 261.273,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34498,
    "c": 0.16592,
    "h": 291
  },
  "luminance": 0.03431
}

Semantic roles & 50–950 ramp

primary
#3F1886
secondary
#8FBA40
accent
#EC3BAE
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #3F1886

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

Preview Lab → · Contrast checker → · Palette generator →

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