#3E1F82#3E1F82

#3E1F82 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.154 H 290.4°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#3E1F82
RGBrgb(62, 31, 130)
HSLhsl(259, 61%, 32%)
HSVhsv(259, 76%, 51%)
CMYKcmyk(52.3%, 76.2%, 0%, 49%)
CIE-LABlab(22.36, 39.19, -50.28)
CIE-LCHlch(22.36, 63.74, 307.93°)
OKLaboklab(34.82% 0.0536 -0.1444)
OKLCHoklch(34.82% 0.154 290.4)
XYZxyz(6.5047, 3.6155, 21.4699)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F82 #63821F
analogous
#1F3282 #3E1F82 #701F82
triadic
#3E1F82 #823E1F #1F823E
tetradic
#3E1F82 #821F32 #63821F #1F8270
square
#3E1F82 #821F32 #63821F #1F8270
split-complementary
#3E1F82 #82701F #32821F
monochromatic
#0F071F #261351 #3E1F82 #562BB3 #7448D3

Accessibility & contrast

On white

12.19
#3E1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3E1F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F82
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F82#FFFFFF#000000##FFFFFF
##3E1F821.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003380
Tritanopia (blue-blind)
#263A4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3e1f82;
/* rgb */ color: rgb(62, 31, 130);
/* oklch */ color: oklch(34.8% 0.154 290.4);
Tailwind
colors: {
  custom: {
    50: '#7b5ea7',
    500: '#3e1f82',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f82;
$custom-light: #7b5ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f82",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 258.788,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34815,
    "c": 0.15401,
    "h": 290.4
  },
  "luminance": 0.03616
}

Semantic roles & 50–950 ramp

primary
#3E1F82
secondary
#93B548
accent
#E543B2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3E1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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