#3E1B7D#3E1B7D

#3E1B7D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.152 H 292.5°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#3E1B7D
RGBrgb(62, 27, 125)
HSLhsl(261, 64%, 30%)
HSVhsv(261, 78%, 49%)
CMYKcmyk(50.4%, 78.4%, 0%, 51%)
CIE-LABlab(21.16, 39.77, -49.07)
CIE-LCHlch(21.16, 63.16, 309.02°)
OKLaboklab(33.83% 0.0584 -0.1408)
OKLCHoklch(33.83% 0.152 292.5)
XYZxyz(6.0792, 3.2885, 19.7125)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1B7D #5A7D1B
analogous
#1B297D #3E1B7D #6F1B7D
triadic
#3E1B7D #7D3E1B #1B7D3E
tetradic
#3E1B7D #7D1B29 #5A7D1B #1B7D6F
square
#3E1B7D #7D1B29 #5A7D1B #1B7D6F
split-complementary
#3E1B7D #7D6F1B #297D1B
monochromatic
#0C0519 #25104B #3E1B7D #5726AF #743DD5

Accessibility & contrast

On white

12.67
#3E1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3E1B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1B7D
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1B7D#FFFFFF#000000##FFFFFF
##3E1B7D1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#2A364B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e1b7d;
/* rgb */ color: rgb(62, 27, 125);
/* oklch */ color: oklch(33.8% 0.152 292.5);
Tailwind
colors: {
  custom: {
    50: '#7a5ca4',
    500: '#3e1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #3e1b7d;
$custom-light: #7a5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1b7d",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 261.429,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33829,
    "c": 0.15246,
    "h": 292.5
  },
  "luminance": 0.03289
}

Semantic roles & 50–950 ramp

primary
#3E1B7D
secondary
#8AB143
accent
#E740AC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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