#3E1689#3E1689

#3E1689 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.171 H 289.9°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#3E1689
RGBrgb(62, 22, 137)
HSLhsl(261, 72%, 31%)
HSVhsv(261, 84%, 54%)
CMYKcmyk(54.7%, 83.9%, 0%, 46.3%)
CIE-LABlab(21.59, 45.40, -55.93)
CIE-LCHlch(21.59, 72.04, 309.07°)
OKLaboklab(34.49% 0.0582 -0.1609)
OKLCHoklch(34.49% 0.171 289.9)
XYZxyz(6.7876, 3.4038, 23.9614)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1689 #618916
analogous
#162789 #3E1689 #771689
triadic
#3E1689 #893E16 #16893E
tetradic
#3E1689 #891627 #618916 #168977
square
#3E1689 #891627 #618916 #168977
split-complementary
#3E1689 #897716 #278916
monochromatic
#0E0520 #260E54 #3E1689 #561EBE #743ADF

Accessibility & contrast

On white

12.49
#3E1689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3E1689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1689
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1689#FFFFFF#000000##FFFFFF
##3E16891.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#003187
Tritanopia (blue-blind)
#213951
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3e1689;
/* rgb */ color: rgb(62, 22, 137);
/* oklch */ color: oklch(34.5% 0.171 289.9);
Tailwind
colors: {
  custom: {
    50: '#7d5aad',
    500: '#3e1689',
    950: '#000000',
  },
}
SCSS
$custom: #3e1689;
$custom-light: #7d5aad;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1689",
  "rgb": {
    "r": 62,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 260.87,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34495,
    "c": 0.17108,
    "h": 289.9
  },
  "luminance": 0.03404
}

Semantic roles & 50–950 ramp

primary
#3E1689
secondary
#91BD3E
accent
#EF39B0
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #3E1689

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

Preview Lab → · Contrast checker → · Palette generator →

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