#3E1885#3E1885

#3E1885 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.165 H 290.7°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#3E1885
RGBrgb(62, 24, 133)
HSLhsl(261, 69%, 31%)
HSVhsv(261, 82%, 52%)
CMYKcmyk(53.4%, 82%, 0%, 47.8%)
CIE-LABlab(21.47, 43.44, -53.62)
CIE-LCHlch(21.47, 69.01, 309.01°)
OKLaboklab(34.28% 0.0583 -0.1541)
OKLCHoklch(34.28% 0.165 290.7)
XYZxyz(6.5457, 3.3706, 22.4914)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1885 #5F8518
analogous
#182985 #3E1885 #741885
triadic
#3E1885 #853E18 #18853E
tetradic
#3E1885 #851829 #5F8518 #188574
square
#3E1885 #851829 #5F8518 #188574
split-complementary
#3E1885 #857418 #298518
monochromatic
#0E051D #260F51 #3E1885 #5621B9 #733CDC

Accessibility & contrast

On white

12.54
#3E1885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1885
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1885#FFFFFF#000000##FFFFFF
##3E18851.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e1885;
/* rgb */ color: rgb(62, 24, 133);
/* oklch */ color: oklch(34.3% 0.165 290.7);
Tailwind
colors: {
  custom: {
    50: '#7c5aaa',
    500: '#3e1885',
    950: '#000000',
  },
}
SCSS
$custom: #3e1885;
$custom-light: #7c5aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1885",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 260.917,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34285,
    "c": 0.16478,
    "h": 290.7
  },
  "luminance": 0.03371
}

Semantic roles & 50–950 ramp

primary
#3E1885
secondary
#8FB940
accent
#EC3CAF
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3E1885

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

Preview Lab → · Contrast checker → · Palette generator →

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