#3E1987#3E1987

#3E1987 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.166 H 290.0°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#3E1987
RGBrgb(62, 25, 135)
HSLhsl(260, 69%, 31%)
HSVhsv(260, 81%, 53%)
CMYKcmyk(54.1%, 81.5%, 0%, 47.1%)
CIE-LABlab(21.83, 43.55, -54.29)
CIE-LCHlch(21.83, 69.60, 308.74°)
OKLaboklab(34.6% 0.0569 -0.1561)
OKLCHoklch(34.6% 0.166 290)
XYZxyz(6.7061, 3.4684, 23.2331)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1987 #628719
analogous
#192B87 #3E1987 #751987
triadic
#3E1987 #873E19 #19873E
tetradic
#3E1987 #87192B #628719 #198775
square
#3E1987 #87192B #628719 #198775
split-complementary
#3E1987 #877519 #2B8719
monochromatic
#0F0620 #260F53 #3E1987 #5623BB #743FDB

Accessibility & contrast

On white

12.40
#3E1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1987
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1987#FFFFFF#000000##FFFFFF
##3E19871.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#233950
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3e1987;
/* rgb */ color: rgb(62, 25, 135);
/* oklch */ color: oklch(34.6% 0.166 290.0);
Tailwind
colors: {
  custom: {
    50: '#7c5bab',
    500: '#3e1987',
    950: '#000000',
  },
}
SCSS
$custom: #3e1987;
$custom-light: #7c5bab;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1987",
  "rgb": {
    "r": 62,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 260.182,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34596,
    "c": 0.16614,
    "h": 290
  },
  "luminance": 0.03469
}

Semantic roles & 50–950 ramp

primary
#3E1987
secondary
#92BA41
accent
#EC3CB1
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3E1987

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

Preview Lab → · Contrast checker → · Palette generator →

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