#3E2771#3E2771

#3E2771 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.5% C 0.122 H 293.3°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#3E2771
RGBrgb(62, 39, 113)
HSLhsl(259, 49%, 30%)
HSVhsv(259, 65%, 44%)
CMYKcmyk(45.1%, 65.5%, 0%, 55.7%)
CIE-LABlab(22.54, 29.50, -39.15)
CIE-LCHlch(22.54, 49.02, 307.00°)
OKLaboklab(34.49% 0.0481 -0.1117)
OKLCHoklch(34.49% 0.122 293.3)
XYZxyz(5.6920, 3.6673, 16.0275)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2771 #5A7127
analogous
#273571 #3E2771 #632771
triadic
#3E2771 #713E27 #27713E
tetradic
#3E2771 #712735 #5A7127 #277163
square
#3E2771 #712735 #5A7127 #277163
split-complementary
#3E2771 #716327 #357127
monochromatic
#0C0817 #251744 #3E2771 #57379E #7450C3

Accessibility & contrast

On white

12.11
#3E2771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3E2771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2771
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2771#FFFFFF#000000##FFFFFF
##3E27711.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#00346F
Tritanopia (blue-blind)
#303848
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e2771;
/* rgb */ color: rgb(62, 39, 113);
/* oklch */ color: oklch(34.5% 0.122 293.3);
Tailwind
colors: {
  custom: {
    50: '#78629a',
    500: '#3e2771',
    950: '#000000',
  },
}
SCSS
$custom: #3e2771;
$custom-light: #78629a;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2771",
  "rgb": {
    "r": 62,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 258.649,
    "s": 48.684,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34486,
    "c": 0.12165,
    "h": 293.3
  },
  "luminance": 0.03667
}

Semantic roles & 50–950 ramp

primary
#3E2771
secondary
#8AA350
accent
#D850AE
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3E2771

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

Preview Lab → · Contrast checker → · Palette generator →

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