#3E1371#3E1371

#3E1371 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.147 H 297.9°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#3E1371
RGBrgb(62, 19, 113)
HSLhsl(267, 71%, 26%)
HSVhsv(267, 83%, 44%)
CMYKcmyk(45.1%, 83.2%, 0%, 55.7%)
CIE-LABlab(18.72, 40.14, -45.37)
CIE-LCHlch(18.72, 60.58, 311.50°)
OKLaboklab(31.77% 0.0689 -0.1299)
OKLCHoklch(31.77% 0.147 297.9)
XYZxyz(5.1993, 2.6820, 15.8633)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1371 #467113
analogous
#131771 #3E1371 #6D1371
triadic
#3E1371 #713E13 #13713E
tetradic
#3E1371 #711317 #467113 #13716D
square
#3E1371 #711317 #467113 #13716D
split-complementary
#3E1371 #716D13 #177113
monochromatic
#0E041A #210A3D #3E1371 #5B1CA5 #7725DA

Accessibility & contrast

On white

13.67
#3E1371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3E1371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1371
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1371#FFFFFF#000000##FFFFFF
##3E13711.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e1371;
/* rgb */ color: rgb(62, 19, 113);
/* oklch */ color: oklch(31.8% 0.147 297.9);
Tailwind
colors: {
  custom: {
    50: '#79579b',
    500: '#3e1371',
    950: '#000000',
  },
}
SCSS
$custom: #3e1371;
$custom-light: #79579b;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1371",
  "rgb": {
    "r": 62,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 267.447,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31769,
    "c": 0.14706,
    "h": 297.9
  },
  "luminance": 0.02682
}

Semantic roles & 50–950 ramp

primary
#3E1371
secondary
#75A838
accent
#EE3A9C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3E1371

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

Preview Lab → · Contrast checker → · Palette generator →

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