#3F2487#3F2487

#3F2487 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.154 H 288.7°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#3F2487
RGBrgb(63, 36, 135)
HSLhsl(256, 58%, 34%)
HSVhsv(256, 73%, 53%)
CMYKcmyk(53.3%, 73.3%, 0%, 47.1%)
CIE-LABlab(23.89, 38.15, -50.90)
CIE-LCHlch(23.89, 63.61, 306.86°)
OKLaboklab(36.07% 0.0494 -0.1462)
OKLCHoklch(36.07% 0.154 288.7)
XYZxyz(7.0527, 4.0675, 23.3305)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2487 #6C8724
analogous
#243A87 #3F2487 #702487
triadic
#3F2487 #873F24 #24873F
tetradic
#3F2487 #87243A #6C8724 #248770
square
#3F2487 #87243A #6C8724 #248770
split-complementary
#3F2487 #877024 #3A8724
monochromatic
#120A26 #281757 #3F2487 #5631B7 #7654D1

Accessibility & contrast

On white

11.58
#3F2487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3F2487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2487
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2487#FFFFFF#000000##FFFFFF
##3F24871.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#243E53
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3f2487;
/* rgb */ color: rgb(63, 36, 135);
/* oklch */ color: oklch(36.1% 0.154 288.7);
Tailwind
colors: {
  custom: {
    50: '#7c61ab',
    500: '#3f2487',
    950: '#000000',
  },
}
SCSS
$custom: #3f2487;
$custom-light: #7c61ab;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2487",
  "rgb": {
    "r": 63,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 256.364,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36072,
    "c": 0.15433,
    "h": 288.7
  },
  "luminance": 0.04068
}

Semantic roles & 50–950 ramp

primary
#3F2487
secondary
#9AB551
accent
#E147B7
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3F2487

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

Preview Lab → · Contrast checker → · Palette generator →

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