#3E2571#3E2571

#3E2571 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.2% C 0.125 H 293.9°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#3E2571
RGBrgb(62, 37, 113)
HSLhsl(260, 51%, 29%)
HSVhsv(260, 67%, 44%)
CMYKcmyk(45.1%, 67.3%, 0%, 55.7%)
CIE-LABlab(22.09, 30.72, -39.89)
CIE-LCHlch(22.09, 50.35, 307.60°)
OKLaboklab(34.16% 0.0505 -0.1139)
OKLCHoklch(34.16% 0.125 293.9)
XYZxyz(5.6280, 3.5394, 16.0062)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2571 #587125
analogous
#253271 #3E2571 #642571
triadic
#3E2571 #713E25 #25713E
tetradic
#3E2571 #712532 #587125 #257164
square
#3E2571 #712532 #587125 #257164
split-complementary
#3E2571 #716425 #327125
monochromatic
#0D0817 #251643 #3E2571 #57349F #744CC4

Accessibility & contrast

On white

12.30
#3E2571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3E2571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2571
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2571#FFFFFF#000000##FFFFFF
##3E25711.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#00346F
Tritanopia (blue-blind)
#303747
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3e2571;
/* rgb */ color: rgb(62, 37, 113);
/* oklch */ color: oklch(34.2% 0.125 293.9);
Tailwind
colors: {
  custom: {
    50: '#78619a',
    500: '#3e2571',
    950: '#000000',
  },
}
SCSS
$custom: #3e2571;
$custom-light: #78619a;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2571",
  "rgb": {
    "r": 62,
    "g": 37,
    "b": 113
  },
  "hsl": {
    "h": 259.737,
    "s": 50.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34157,
    "c": 0.1246,
    "h": 293.9
  },
  "luminance": 0.0354
}

Semantic roles & 50–950 ramp

primary
#3E2571
secondary
#88A44E
accent
#DA4EAC
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3E2571

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

Preview Lab → · Contrast checker → · Palette generator →

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