#3E1B7B#3E1B7B

#3E1B7B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.150 H 293.1°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#3E1B7B
RGBrgb(62, 27, 123)
HSLhsl(262, 64%, 29%)
HSVhsv(262, 78%, 48%)
CMYKcmyk(49.6%, 78%, 0%, 51.8%)
CIE-LABlab(20.97, 39.20, -48.11)
CIE-LCHlch(20.97, 62.05, 309.17°)
OKLaboklab(33.64% 0.059 -0.138)
OKLCHoklch(33.64% 0.15 293.1)
XYZxyz(5.9527, 3.2379, 19.0464)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1B7B #587B1B
analogous
#1B287B #3E1B7B #6E1B7B
triadic
#3E1B7B #7B3E1B #1B7B3E
tetradic
#3E1B7B #7B1B28 #587B1B #1B7B6E
square
#3E1B7B #7B1B28 #587B1B #1B7B6E
split-complementary
#3E1B7B #7B6E1B #287B1B
monochromatic
#0D0619 #251049 #3E1B7B #5726AD #743CD4

Accessibility & contrast

On white

12.75
#3E1B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1B7B
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1B7B#FFFFFF#000000##FFFFFF
##3E1B7B1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#2B354A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e1b7b;
/* rgb */ color: rgb(62, 27, 123);
/* oklch */ color: oklch(33.6% 0.150 293.1);
Tailwind
colors: {
  custom: {
    50: '#7a5ba2',
    500: '#3e1b7b',
    950: '#000000',
  },
}
SCSS
$custom: #3e1b7b;
$custom-light: #7a5ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1b7b",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 261.875,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33636,
    "c": 0.15009,
    "h": 293.1
  },
  "luminance": 0.03238
}

Semantic roles & 50–950 ramp

primary
#3E1B7B
secondary
#88AF43
accent
#E741AA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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