#3E1785#3E1785

#3E1785 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.166 H 290.9°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#3E1785
RGBrgb(62, 23, 133)
HSLhsl(261, 71%, 31%)
HSVhsv(261, 83%, 52%)
CMYKcmyk(53.4%, 82.7%, 0%, 47.8%)
CIE-LABlab(21.32, 43.87, -53.87)
CIE-LCHlch(21.32, 69.47, 309.16°)
OKLaboklab(34.18% 0.059 -0.1548)
OKLCHoklch(34.18% 0.166 290.9)
XYZxyz(6.5254, 3.3301, 22.4847)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1785 #5E8517
analogous
#172785 #3E1785 #751785
triadic
#3E1785 #853E17 #17853E
tetradic
#3E1785 #851727 #5E8517 #178575
square
#3E1785 #851727 #5E8517 #178575
split-complementary
#3E1785 #857517 #278517
monochromatic
#0D051D #260E51 #3E1785 #5620B9 #733ADD

Accessibility & contrast

On white

12.61
#3E1785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1785
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1785#FFFFFF#000000##FFFFFF
##3E17851.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#003183
Tritanopia (blue-blind)
#24374F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e1785;
/* rgb */ color: rgb(62, 23, 133);
/* oklch */ color: oklch(34.2% 0.166 290.9);
Tailwind
colors: {
  custom: {
    50: '#7c5aaa',
    500: '#3e1785',
    950: '#000000',
  },
}
SCSS
$custom: #3e1785;
$custom-light: #7c5aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1785",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 261.273,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34181,
    "c": 0.16571,
    "h": 290.9
  },
  "luminance": 0.0333
}

Semantic roles & 50–950 ramp

primary
#3E1785
secondary
#8EB93F
accent
#ED3BAE
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3E1785

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

Preview Lab → · Contrast checker → · Palette generator →

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