#3E1B71#3E1B71

#3E1B71 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.138 H 296.5°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#3E1B71
RGBrgb(62, 27, 113)
HSLhsl(264, 61%, 27%)
HSVhsv(264, 76%, 44%)
CMYKcmyk(45.1%, 76.1%, 0%, 55.7%)
CIE-LABlab(20.04, 36.36, -43.21)
CIE-LCHlch(20.04, 56.47, 310.08°)
OKLaboklab(32.7% 0.0616 -0.1236)
OKLCHoklch(32.7% 0.138 296.5)
XYZxyz(5.3584, 3.0001, 15.9164)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1B71 #4E711B
analogous
#1B2371 #3E1B71 #691B71
triadic
#3E1B71 #713E1B #1B713E
tetradic
#3E1B71 #711B23 #4E711B #1B7169
square
#3E1B71 #711B23 #4E711B #1B7169
split-complementary
#3E1B71 #71691B #23711B
monochromatic
#0E0619 #230F40 #3E1B71 #5927A2 #7537CF

Accessibility & contrast

On white

13.13
#3E1B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3E1B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1B71
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1B71#FFFFFF#000000##FFFFFF
##3E1B711.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002F6F
Tritanopia (blue-blind)
#303144
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3e1b71;
/* rgb */ color: rgb(62, 27, 113);
/* oklch */ color: oklch(32.7% 0.138 296.5);
Tailwind
colors: {
  custom: {
    50: '#795b9b',
    500: '#3e1b71',
    950: '#000000',
  },
}
SCSS
$custom: #3e1b71;
$custom-light: #795b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1b71",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 264.419,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32696,
    "c": 0.13812,
    "h": 296.5
  },
  "luminance": 0.03
}

Semantic roles & 50–950 ramp

primary
#3E1B71
secondary
#7DA642
accent
#E543A3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3E1B71

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

Preview Lab → · Contrast checker → · Palette generator →

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