#3E1B7F#3E1B7F

#3E1B7F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.155 H 291.9°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#3E1B7F
RGBrgb(62, 27, 127)
HSLhsl(261, 65%, 30%)
HSVhsv(261, 79%, 50%)
CMYKcmyk(51.2%, 78.7%, 0%, 50.2%)
CIE-LABlab(21.36, 40.34, -50.02)
CIE-LCHlch(21.36, 64.26, 308.89°)
OKLaboklab(34.02% 0.0579 -0.1436)
OKLCHoklch(34.02% 0.155 291.9)
XYZxyz(6.2082, 3.3401, 20.3921)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1B7F #5C7F1B
analogous
#1B2A7F #3E1B7F #701B7F
triadic
#3E1B7F #7F3E1B #1B7F3E
tetradic
#3E1B7F #7F1B2A #5C7F1B #1B7F70
square
#3E1B7F #7F1B2A #5C7F1B #1B7F70
split-complementary
#3E1B7F #7F701B #2A7F1B
monochromatic
#0D061A #25104D #3E1B7F #5726B1 #733ED6

Accessibility & contrast

On white

12.59
#3E1B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3E1B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1B7F
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1B7F#FFFFFF#000000##FFFFFF
##3E1B7F1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#29374C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e1b7f;
/* rgb */ color: rgb(62, 27, 127);
/* oklch */ color: oklch(34.0% 0.155 291.9);
Tailwind
colors: {
  custom: {
    50: '#7b5ca5',
    500: '#3e1b7f',
    950: '#000000',
  },
}
SCSS
$custom: #3e1b7f;
$custom-light: #7b5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1b7f",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 261,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34024,
    "c": 0.15483,
    "h": 291.9
  },
  "luminance": 0.0334
}

Semantic roles & 50–950 ramp

primary
#3E1B7F
secondary
#8CB343
accent
#E840AD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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