#3E1F84#3E1F84

#3E1F84 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.156 H 289.8°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#3E1F84
RGBrgb(62, 31, 132)
HSLhsl(258, 62%, 32%)
HSVhsv(258, 77%, 52%)
CMYKcmyk(53%, 76.5%, 0%, 48.2%)
CIE-LABlab(22.55, 39.77, -51.22)
CIE-LCHlch(22.55, 64.85, 307.83°)
OKLaboklab(35.01% 0.0531 -0.1472)
OKLCHoklch(35.01% 0.156 289.8)
XYZxyz(6.6402, 3.6698, 22.1838)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F84 #65841F
analogous
#1F3384 #3E1F84 #711F84
triadic
#3E1F84 #843E1F #1F843E
tetradic
#3E1F84 #841F33 #65841F #1F8471
square
#3E1F84 #841F33 #65841F #1F8471
split-complementary
#3E1F84 #84711F #33841F
monochromatic
#0F0821 #271352 #3E1F84 #552BB6 #7449D4

Accessibility & contrast

On white

12.11
#3E1F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3E1F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F84
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F84#FFFFFF#000000##FFFFFF
##3E1F841.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003887
Deuteranopia (green-blind)
#003382
Tritanopia (blue-blind)
#253B50
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e1f84;
/* rgb */ color: rgb(62, 31, 132);
/* oklch */ color: oklch(35.0% 0.156 289.8);
Tailwind
colors: {
  custom: {
    50: '#7b5ea9',
    500: '#3e1f84',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f84;
$custom-light: #7b5ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f84",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 258.416,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35008,
    "c": 0.15644,
    "h": 289.8
  },
  "luminance": 0.0367
}

Semantic roles & 50–950 ramp

primary
#3E1F84
secondary
#95B748
accent
#E543B3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3E1F84

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

Preview Lab → · Contrast checker → · Palette generator →

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