#3E1989#3E1989

#3E1989 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.168 H 289.5°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#3E1989
RGBrgb(62, 25, 137)
HSLhsl(260, 69%, 32%)
HSVhsv(260, 82%, 54%)
CMYKcmyk(54.7%, 81.8%, 0%, 46.3%)
CIE-LABlab(22.04, 44.11, -55.20)
CIE-LCHlch(22.04, 70.66, 308.63°)
OKLaboklab(34.8% 0.0562 -0.1588)
OKLCHoklch(34.8% 0.168 289.5)
XYZxyz(6.8483, 3.5252, 23.9816)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1989 #648919
analogous
#192C89 #3E1989 #761989
triadic
#3E1989 #893E19 #19893E
tetradic
#3E1989 #89192C #648919 #198976
square
#3E1989 #89192C #648919 #198976
split-complementary
#3E1989 #897619 #2C8919
monochromatic
#0F0621 #271055 #3E1989 #5522BD #7440DC

Accessibility & contrast

On white

12.32
#3E1989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3E1989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1989
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1989#FFFFFF#000000##FFFFFF
##3E19891.0012.321.7112.32
#FFFFFF12.321.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#003287
Tritanopia (blue-blind)
#213A51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3e1989;
/* rgb */ color: rgb(62, 25, 137);
/* oklch */ color: oklch(34.8% 0.168 289.5);
Tailwind
colors: {
  custom: {
    50: '#7d5bad',
    500: '#3e1989',
    950: '#000000',
  },
}
SCSS
$custom: #3e1989;
$custom-light: #7d5bad;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1989",
  "rgb": {
    "r": 62,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 259.821,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.348,
    "c": 0.16843,
    "h": 289.5
  },
  "luminance": 0.03526
}

Semantic roles & 50–950 ramp

primary
#3E1989
secondary
#94BC41
accent
#EC3CB2
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #3E1989

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

Preview Lab → · Contrast checker → · Palette generator →

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