#3F2D86#3F2D86

#3F2D86 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.4% C 0.142 H 286.7°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#3F2D86
RGBrgb(63, 45, 134)
HSLhsl(252, 50%, 35%)
HSVhsv(252, 66%, 53%)
CMYKcmyk(53%, 66.4%, 0%, 47.5%)
CIE-LABlab(25.73, 32.58, -47.28)
CIE-LCHlch(25.73, 57.42, 304.57°)
OKLaboklab(37.36% 0.0406 -0.1356)
OKLCHoklch(37.36% 0.142 286.7)
XYZxyz(7.2901, 4.6544, 23.0639)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2D86 #74862D
analogous
#2D4786 #3F2D86 #6C2D86
triadic
#3F2D86 #863F2D #2D863F
tetradic
#3F2D86 #862D47 #74862D #2D866C
square
#3F2D86 #862D47 #74862D #2D866C
split-complementary
#3F2D86 #866C2D #47862D
monochromatic
#140E2A #291E58 #3F2D86 #553CB4 #7863CB

Accessibility & contrast

On white

10.88
#3F2D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3F2D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2D86
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2D86#FFFFFF#000000##FFFFFF
##3F2D861.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F89
Deuteranopia (green-blind)
#003A84
Tritanopia (blue-blind)
#244355
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3f2d86;
/* rgb */ color: rgb(63, 45, 134);
/* oklch */ color: oklch(37.4% 0.142 286.7);
Tailwind
colors: {
  custom: {
    50: '#7b67aa',
    500: '#3f2d86',
    950: '#000000',
  },
}
SCSS
$custom: #3f2d86;
$custom-light: #7b67aa;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2d86",
  "rgb": {
    "r": 63,
    "g": 45,
    "b": 134
  },
  "hsl": {
    "h": 252.135,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3736,
    "c": 0.14157,
    "h": 286.7
  },
  "luminance": 0.04655
}

Semantic roles & 50–950 ramp

primary
#3F2D86
secondary
#A0B15E
accent
#D94FBD
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3F2D86

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

Preview Lab → · Contrast checker → · Palette generator →

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