#3F2986#3F2986

#3F2986 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.7% C 0.147 H 287.8°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#3F2986
RGBrgb(63, 41, 134)
HSLhsl(254, 53%, 34%)
HSVhsv(254, 69%, 53%)
CMYKcmyk(53%, 69.4%, 0%, 47.5%)
CIE-LABlab(24.84, 34.99, -48.73)
CIE-LCHlch(24.84, 59.99, 305.68°)
OKLaboklab(36.72% 0.0448 -0.1399)
OKLCHoklch(36.72% 0.147 287.8)
XYZxyz(7.1447, 4.3635, 23.0154)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2986 #708629
analogous
#294186 #3F2986 #6E2986
triadic
#3F2986 #863F29 #29863F
tetradic
#3F2986 #862941 #708629 #29866E
square
#3F2986 #862941 #708629 #29866E
split-complementary
#3F2986 #866E29 #418629
monochromatic
#130C28 #291B57 #3F2986 #5537B5 #775CCD

Accessibility & contrast

On white

11.21
#3F2986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3F2986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2986
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2986#FFFFFF#000000##FFFFFF
##3F29861.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D89
Deuteranopia (green-blind)
#003884
Tritanopia (blue-blind)
#254054
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3f2986;
/* rgb */ color: rgb(63, 41, 134);
/* oklch */ color: oklch(36.7% 0.147 287.8);
Tailwind
colors: {
  custom: {
    50: '#7b64aa',
    500: '#3f2986',
    950: '#000000',
  },
}
SCSS
$custom: #3f2986;
$custom-light: #7b64aa;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2986",
  "rgb": {
    "r": 63,
    "g": 41,
    "b": 134
  },
  "hsl": {
    "h": 254.194,
    "s": 53.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3672,
    "c": 0.14685,
    "h": 287.8
  },
  "luminance": 0.04364
}

Semantic roles & 50–950 ramp

primary
#3F2986
secondary
#9DB358
accent
#DD4BBA
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3F2986

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

Preview Lab → · Contrast checker → · Palette generator →

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