#3E2071#3E2071

#3E2071 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.132 H 295.3°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#3E2071
RGBrgb(62, 32, 113)
HSLhsl(262, 56%, 28%)
HSVhsv(262, 72%, 44%)
CMYKcmyk(45.1%, 71.7%, 0%, 55.7%)
CIE-LABlab(21.02, 33.64, -41.63)
CIE-LCHlch(21.02, 53.52, 308.95°)
OKLaboklab(33.39% 0.0563 -0.119)
OKLCHoklch(33.39% 0.132 295.3)
XYZxyz(5.4830, 3.2493, 15.9579)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2071 #537120
analogous
#202A71 #3E2071 #662071
triadic
#3E2071 #713E20 #20713E
tetradic
#3E2071 #71202A #537120 #207166
square
#3E2071 #71202A #537120 #207166
split-complementary
#3E2071 #716620 #2A7120
monochromatic
#0D0718 #241241 #3E2071 #582EA1 #7442C9

Accessibility & contrast

On white

12.73
#3E2071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3E2071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2071
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2071#FFFFFF#000000##FFFFFF
##3E20711.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#00316F
Tritanopia (blue-blind)
#303446
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e2071;
/* rgb */ color: rgb(62, 32, 113);
/* oklch */ color: oklch(33.4% 0.132 295.3);
Tailwind
colors: {
  custom: {
    50: '#785e9a',
    500: '#3e2071',
    950: '#000000',
  },
}
SCSS
$custom: #3e2071;
$custom-light: #785e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2071",
  "rgb": {
    "r": 62,
    "g": 32,
    "b": 113
  },
  "hsl": {
    "h": 262.222,
    "s": 55.862,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33387,
    "c": 0.13165,
    "h": 295.3
  },
  "luminance": 0.03249
}

Semantic roles & 50–950 ramp

primary
#3E2071
secondary
#82A548
accent
#DF49A7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3E2071

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

Preview Lab → · Contrast checker → · Palette generator →

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