#3E1671#3E1671

#3E1671 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.144 H 297.4°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#3E1671
RGBrgb(62, 22, 113)
HSLhsl(266, 67%, 26%)
HSVhsv(266, 81%, 44%)
CMYKcmyk(45.1%, 80.5%, 0%, 55.7%)
CIE-LABlab(19.18, 38.81, -44.62)
CIE-LCHlch(19.18, 59.14, 311.02°)
OKLaboklab(32.09% 0.0664 -0.1277)
OKLCHoklch(32.09% 0.144 297.4)
XYZxyz(5.2534, 2.7901, 15.8813)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1671 #497116
analogous
#161C71 #3E1671 #6C1671
triadic
#3E1671 #713E16 #16713E
tetradic
#3E1671 #71161C #497116 #16716C
square
#3E1671 #71161C #497116 #16716C
split-complementary
#3E1671 #716C16 #1C7116
monochromatic
#0E051A #220C3E #3E1671 #5A20A4 #762CD6

Accessibility & contrast

On white

13.48
#3E1671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3E1671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1671
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1671#FFFFFF#000000##FFFFFF
##3E16711.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#312F43
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3e1671;
/* rgb */ color: rgb(62, 22, 113);
/* oklch */ color: oklch(32.1% 0.144 297.4);
Tailwind
colors: {
  custom: {
    50: '#79589b',
    500: '#3e1671',
    950: '#000000',
  },
}
SCSS
$custom: #3e1671;
$custom-light: #79589b;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1671",
  "rgb": {
    "r": 62,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 266.374,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3209,
    "c": 0.14393,
    "h": 297.4
  },
  "luminance": 0.0279
}

Semantic roles & 50–950 ramp

primary
#3E1671
secondary
#78A73C
accent
#EA3E9E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3E1671

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

Preview Lab → · Contrast checker → · Palette generator →

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