#3E1A83#3E1A83

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

Color values

HEX#3E1A83
RGBrgb(62, 26, 131)
HSLhsl(261, 67%, 31%)
HSVhsv(261, 80%, 51%)
CMYKcmyk(52.7%, 80.2%, 0%, 48.6%)
CIE-LABlab(21.58, 41.96, -52.18)
CIE-LCHlch(21.58, 66.95, 308.81°)
OKLaboklab(34.3% 0.0575 -0.1499)
OKLCHoklch(34.3% 0.161 291)
XYZxyz(6.4516, 3.4013, 21.7849)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1A83 #5F831A
analogous
#1A2B83 #3E1A83 #721A83
triadic
#3E1A83 #833E1A #1A833E
tetradic
#3E1A83 #831A2B #5F831A #1A8372
square
#3E1A83 #831A2B #5F831A #1A8372
split-complementary
#3E1A83 #83721A #2B831A
monochromatic
#0E061D #261050 #3E1A83 #5624B6 #733FD9

Accessibility & contrast

On white

12.50
#3E1A83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3E1A83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1A83
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1A83#FFFFFF#000000##FFFFFF
##3E1A831.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#003181
Tritanopia (blue-blind)
#26384E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3e1a83;
/* rgb */ color: rgb(62, 26, 131);
/* oklch */ color: oklch(34.3% 0.161 291.0);
Tailwind
colors: {
  custom: {
    50: '#7c5ba8',
    500: '#3e1a83',
    950: '#000000',
  },
}
SCSS
$custom: #3e1a83;
$custom-light: #7c5ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1a83",
  "rgb": {
    "r": 62,
    "g": 26,
    "b": 131
  },
  "hsl": {
    "h": 260.571,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34303,
    "c": 0.16055,
    "h": 291
  },
  "luminance": 0.03402
}

Semantic roles & 50–950 ramp

primary
#3E1A83
secondary
#8FB742
accent
#EA3EAF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3E1A83

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

Preview Lab → · Contrast checker → · Palette generator →

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