#3E1B7A#3E1B7A

#3E1B7A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.149 H 293.5°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#3E1B7A
RGBrgb(62, 27, 122)
HSLhsl(262, 64%, 29%)
HSVhsv(262, 78%, 48%)
CMYKcmyk(49.2%, 77.9%, 0%, 52.2%)
CIE-LABlab(20.88, 38.91, -47.63)
CIE-LCHlch(20.88, 61.50, 309.25°)
OKLaboklab(33.54% 0.0593 -0.1366)
OKLCHoklch(33.54% 0.149 293.5)
XYZxyz(5.8904, 3.2130, 18.7184)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1B7A #577A1B
analogous
#1B287A #3E1B7A #6E1B7A
triadic
#3E1B7A #7A3E1B #1B7A3E
tetradic
#3E1B7A #7A1B28 #577A1B #1B7A6E
square
#3E1B7A #7A1B28 #577A1B #1B7A6E
split-complementary
#3E1B7A #7A6E1B #287A1B
monochromatic
#0D0619 #251048 #3E1B7A #5726AC #743CD4

Accessibility & contrast

On white

12.78
#3E1B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3E1B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1B7A
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1B7A#FFFFFF#000000##FFFFFF
##3E1B7A1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#2C3549
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e1b7a;
/* rgb */ color: rgb(62, 27, 122);
/* oklch */ color: oklch(33.5% 0.149 293.5);
Tailwind
colors: {
  custom: {
    50: '#7a5ba1',
    500: '#3e1b7a',
    950: '#000000',
  },
}
SCSS
$custom: #3e1b7a;
$custom-light: #7a5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1b7a",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 262.105,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3354,
    "c": 0.1489,
    "h": 293.5
  },
  "luminance": 0.03213
}

Semantic roles & 50–950 ramp

primary
#3E1B7A
secondary
#87AE43
accent
#E741AA
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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