#3E1B84#3E1B84

#3E1B84 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.161 H 290.5°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#3E1B84
RGBrgb(62, 27, 132)
HSLhsl(260, 66%, 31%)
HSVhsv(260, 80%, 52%)
CMYKcmyk(53%, 79.5%, 0%, 48.2%)
CIE-LABlab(21.85, 41.77, -52.37)
CIE-LCHlch(21.85, 66.99, 308.57°)
OKLaboklab(34.52% 0.0564 -0.1505)
OKLCHoklch(34.52% 0.161 290.5)
XYZxyz(6.5422, 3.4737, 22.1511)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1B84 #61841B
analogous
#1B2C84 #3E1B84 #721B84
triadic
#3E1B84 #843E1B #1B843E
tetradic
#3E1B84 #841B2C #61841B #1B8472
square
#3E1B84 #841B2C #61841B #1B8472
split-complementary
#3E1B84 #84721B #2C841B
monochromatic
#0E061E #261151 #3E1B84 #5625B7 #7441D8

Accessibility & contrast

On white

12.39
#3E1B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3E1B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1B84
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1B84#FFFFFF#000000##FFFFFF
##3E1B841.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#003282
Tritanopia (blue-blind)
#25394F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3e1b84;
/* rgb */ color: rgb(62, 27, 132);
/* oklch */ color: oklch(34.5% 0.161 290.5);
Tailwind
colors: {
  custom: {
    50: '#7c5ca9',
    500: '#3e1b84',
    950: '#000000',
  },
}
SCSS
$custom: #3e1b84;
$custom-light: #7c5ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1b84",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 132
  },
  "hsl": {
    "h": 260,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34518,
    "c": 0.1607,
    "h": 290.5
  },
  "luminance": 0.03474
}

Semantic roles & 50–950 ramp

primary
#3E1B84
secondary
#91B743
accent
#E93FB0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3E1B84

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

Preview Lab → · Contrast checker → · Palette generator →

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