#3F2987#3F2987

#3F2987 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.148 H 287.5°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#3F2987
RGBrgb(63, 41, 135)
HSLhsl(254, 53%, 35%)
HSVhsv(254, 70%, 53%)
CMYKcmyk(53.3%, 69.6%, 0%, 47.1%)
CIE-LABlab(24.93, 35.30, -49.21)
CIE-LCHlch(24.93, 60.56, 305.65°)
OKLaboklab(36.81% 0.0446 -0.1413)
OKLCHoklch(36.81% 0.148 287.5)
XYZxyz(7.2147, 4.3916, 23.3845)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2987 #718729
analogous
#294287 #3F2987 #6E2987
triadic
#3F2987 #873F29 #29873F
tetradic
#3F2987 #872942 #718729 #29876E
square
#3F2987 #872942 #718729 #29876E
split-complementary
#3F2987 #876E29 #428729
monochromatic
#130C29 #291B58 #3F2987 #5537B6 #775DCE

Accessibility & contrast

On white

11.18
#3F2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3F2987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2987
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2987#FFFFFF#000000##FFFFFF
##3F29871.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#244154
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3f2987;
/* rgb */ color: rgb(63, 41, 135);
/* oklch */ color: oklch(36.8% 0.148 287.5);
Tailwind
colors: {
  custom: {
    50: '#7c64ab',
    500: '#3f2987',
    950: '#000000',
  },
}
SCSS
$custom: #3f2987;
$custom-light: #7c64ab;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2987",
  "rgb": {
    "r": 63,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 254.043,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36809,
    "c": 0.14815,
    "h": 287.5
  },
  "luminance": 0.04392
}

Semantic roles & 50–950 ramp

primary
#3F2987
secondary
#9EB359
accent
#DD4BBB
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3F2987

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

Preview Lab → · Contrast checker → · Palette generator →

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