#3E1687#3E1687

#3E1687 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.3% C 0.169 H 290.4°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#3E1687
RGBrgb(62, 22, 135)
HSLhsl(261, 72%, 31%)
HSVhsv(261, 84%, 53%)
CMYKcmyk(54.1%, 83.7%, 0%, 47.1%)
CIE-LABlab(21.38, 44.85, -55.02)
CIE-LCHlch(21.38, 70.99, 309.18°)
OKLaboklab(34.29% 0.059 -0.1582)
OKLCHoklch(34.29% 0.169 290.4)
XYZxyz(6.6454, 3.3469, 23.2128)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1687 #5F8716
analogous
#162687 #3E1687 #761687
triadic
#3E1687 #873E16 #16873E
tetradic
#3E1687 #871626 #5F8716 #168776
square
#3E1687 #871626 #5F8716 #168776
split-complementary
#3E1687 #877616 #268716
monochromatic
#0E051E #260D52 #3E1687 #561FBC #7339DF

Accessibility & contrast

On white

12.58
#3E1687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3E1687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1687
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1687#FFFFFF#000000##FFFFFF
##3E16871.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#233850
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e1687;
/* rgb */ color: rgb(62, 22, 135);
/* oklch */ color: oklch(34.3% 0.169 290.4);
Tailwind
colors: {
  custom: {
    50: '#7c5aab',
    500: '#3e1687',
    950: '#000000',
  },
}
SCSS
$custom: #3e1687;
$custom-light: #7c5aab;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1687",
  "rgb": {
    "r": 62,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 261.239,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34287,
    "c": 0.16884,
    "h": 290.4
  },
  "luminance": 0.03347
}

Semantic roles & 50–950 ramp

primary
#3E1687
secondary
#8FBB3E
accent
#EF39AE
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #3E1687

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

Preview Lab → · Contrast checker → · Palette generator →

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