#3E1971#3E1971

#3E1971 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.141 H 296.9°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#3E1971
RGBrgb(62, 25, 113)
HSLhsl(265, 64%, 27%)
HSVhsv(265, 78%, 44%)
CMYKcmyk(45.1%, 77.9%, 0%, 55.7%)
CIE-LABlab(19.69, 37.37, -43.80)
CIE-LCHlch(19.69, 57.57, 310.48°)
OKLaboklab(32.44% 0.0636 -0.1253)
OKLCHoklch(32.44% 0.141 296.9)
XYZxyz(5.3141, 2.9115, 15.9016)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1971 #4C7119
analogous
#192071 #3E1971 #6A1971
triadic
#3E1971 #713E19 #19713E
tetradic
#3E1971 #711920 #4C7119 #19716A
square
#3E1971 #711920 #4C7119 #19716A
split-complementary
#3E1971 #716A19 #207119
monochromatic
#0E0619 #230E3F #3E1971 #5924A3 #7633D2

Accessibility & contrast

On white

13.27
#3E1971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#3E1971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1971
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1971#FFFFFF#000000##FFFFFF
##3E19711.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#313044
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3e1971;
/* rgb */ color: rgb(62, 25, 113);
/* oklch */ color: oklch(32.4% 0.141 296.9);
Tailwind
colors: {
  custom: {
    50: '#795a9b',
    500: '#3e1971',
    950: '#000000',
  },
}
SCSS
$custom: #3e1971;
$custom-light: #795a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1971",
  "rgb": {
    "r": 62,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 265.227,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.32444,
    "c": 0.14053,
    "h": 296.9
  },
  "luminance": 0.02912
}

Semantic roles & 50–950 ramp

primary
#3E1971
secondary
#7BA640
accent
#E741A1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3E1971

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

Preview Lab → · Contrast checker → · Palette generator →

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