#3E1B79#3E1B79

#3E1B79 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.148 H 293.8°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#3E1B79
RGBrgb(62, 27, 121)
HSLhsl(262, 64%, 29%)
HSVhsv(262, 78%, 47%)
CMYKcmyk(48.8%, 77.7%, 0%, 52.5%)
CIE-LABlab(20.78, 38.63, -47.14)
CIE-LCHlch(20.78, 60.95, 309.33°)
OKLaboklab(33.45% 0.0596 -0.1352)
OKLCHoklch(33.45% 0.148 293.8)
XYZxyz(5.8288, 3.1883, 18.3937)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1B79 #56791B
analogous
#1B2779 #3E1B79 #6D1B79
triadic
#3E1B79 #793E1B #1B793E
tetradic
#3E1B79 #791B27 #56791B #1B796D
square
#3E1B79 #791B27 #56791B #1B796D
split-complementary
#3E1B79 #796D1B #27791B
monochromatic
#0D0619 #241047 #3E1B79 #5826AB #743BD3

Accessibility & contrast

On white

12.82
#3E1B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1B79
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1B79#FFFFFF#000000##FFFFFF
##3E1B791.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#2C3449
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e1b79;
/* rgb */ color: rgb(62, 27, 121);
/* oklch */ color: oklch(33.4% 0.148 293.8);
Tailwind
colors: {
  custom: {
    50: '#7a5ba1',
    500: '#3e1b79',
    950: '#000000',
  },
}
SCSS
$custom: #3e1b79;
$custom-light: #7a5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1b79",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 262.34,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33445,
    "c": 0.14772,
    "h": 293.8
  },
  "luminance": 0.03188
}

Semantic roles & 50–950 ramp

primary
#3E1B79
secondary
#86AD43
accent
#E741A9
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1B79

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

Preview Lab → · Contrast checker → · Palette generator →

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