#3E1771#3E1771

#3E1771 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.143 H 297.3°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#3E1771
RGBrgb(62, 23, 113)
HSLhsl(266, 66%, 27%)
HSVhsv(266, 80%, 44%)
CMYKcmyk(45.1%, 79.6%, 0%, 55.7%)
CIE-LABlab(19.35, 38.34, -44.35)
CIE-LCHlch(19.35, 58.63, 310.84°)
OKLaboklab(32.21% 0.0654 -0.127)
OKLCHoklch(32.21% 0.143 297.3)
XYZxyz(5.2729, 2.8291, 15.8878)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1771 #4A7117
analogous
#171D71 #3E1771 #6B1771
triadic
#3E1771 #713E17 #17713E
tetradic
#3E1771 #71171D #4A7117 #17716B
square
#3E1771 #71171D #4A7117 #17716B
split-complementary
#3E1771 #716B17 #1D7117
monochromatic
#0E0519 #220D3E #3E1771 #5A21A4 #762ED4

Accessibility & contrast

On white

13.41
#3E1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#3E1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1771
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1771#FFFFFF#000000##FFFFFF
##3E17711.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e1771;
/* rgb */ color: rgb(62, 23, 113);
/* oklch */ color: oklch(32.2% 0.143 297.3);
Tailwind
colors: {
  custom: {
    50: '#79599b',
    500: '#3e1771',
    950: '#000000',
  },
}
SCSS
$custom: #3e1771;
$custom-light: #79599b;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1771",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 266,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32205,
    "c": 0.14283,
    "h": 297.3
  },
  "luminance": 0.02829
}

Semantic roles & 50–950 ramp

primary
#3E1771
secondary
#79A73D
accent
#E93F9F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3E1771

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

Preview Lab → · Contrast checker → · Palette generator →

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