#3E1571#3E1571

#3E1571 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.145 H 297.6°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#3E1571
RGBrgb(62, 21, 113)
HSLhsl(267, 69%, 26%)
HSVhsv(267, 81%, 44%)
CMYKcmyk(45.1%, 81.4%, 0%, 55.7%)
CIE-LABlab(19.02, 39.26, -44.88)
CIE-LCHlch(19.02, 59.63, 311.18°)
OKLaboklab(31.98% 0.0672 -0.1285)
OKLCHoklch(31.98% 0.145 297.6)
XYZxyz(5.2346, 2.7526, 15.8751)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1571 #487115
analogous
#151A71 #3E1571 #6C1571
triadic
#3E1571 #713E15 #15713E
tetradic
#3E1571 #71151A #487115 #15716C
square
#3E1571 #71151A #487115 #15716C
split-complementary
#3E1571 #716C15 #1A7115
monochromatic
#0E051A #220B3D #3E1571 #5A1FA5 #7729D7

Accessibility & contrast

On white

13.54
#3E1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3E1571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1571
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1571#FFFFFF#000000##FFFFFF
##3E15711.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#312E43
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3e1571;
/* rgb */ color: rgb(62, 21, 113);
/* oklch */ color: oklch(32.0% 0.145 297.6);
Tailwind
colors: {
  custom: {
    50: '#79589b',
    500: '#3e1571',
    950: '#000000',
  },
}
SCSS
$custom: #3e1571;
$custom-light: #79589b;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1571",
  "rgb": {
    "r": 62,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 266.739,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.3198,
    "c": 0.14501,
    "h": 297.6
  },
  "luminance": 0.02753
}

Semantic roles & 50–950 ramp

primary
#3E1571
secondary
#77A73B
accent
#EB3C9D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3E1571

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

Preview Lab → · Contrast checker → · Palette generator →

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