#3E1B7C#3E1B7C

#3E1B7C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.151 H 292.8°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#3E1B7C
RGBrgb(62, 27, 124)
HSLhsl(262, 64%, 30%)
HSVhsv(262, 78%, 49%)
CMYKcmyk(50%, 78.2%, 0%, 51.4%)
CIE-LABlab(21.07, 39.48, -48.59)
CIE-LCHlch(21.07, 62.61, 309.10°)
OKLaboklab(33.73% 0.0587 -0.1394)
OKLCHoklch(33.73% 0.151 292.8)
XYZxyz(6.0156, 3.2630, 19.3777)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1B7C #597C1B
analogous
#1B297C #3E1B7C #6E1B7C
triadic
#3E1B7C #7C3E1B #1B7C3E
tetradic
#3E1B7C #7C1B29 #597C1B #1B7C6E
square
#3E1B7C #7C1B29 #597C1B #1B7C6E
split-complementary
#3E1B7C #7C6E1B #297C1B
monochromatic
#0D0519 #25104A #3E1B7C #5726AE #743DD5

Accessibility & contrast

On white

12.71
#3E1B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3E1B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1B7C
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1B7C#FFFFFF#000000##FFFFFF
##3E1B7C1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#2A354A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e1b7c;
/* rgb */ color: rgb(62, 27, 124);
/* oklch */ color: oklch(33.7% 0.151 292.8);
Tailwind
colors: {
  custom: {
    50: '#7a5ba3',
    500: '#3e1b7c',
    950: '#000000',
  },
}
SCSS
$custom: #3e1b7c;
$custom-light: #7a5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1b7c",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 261.649,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33733,
    "c": 0.15128,
    "h": 292.8
  },
  "luminance": 0.03263
}

Semantic roles & 50–950 ramp

primary
#3E1B7C
secondary
#89B043
accent
#E741AB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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