#3E2572#3E2572

#3E2572 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.2% C 0.126 H 293.6°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#3E2572
RGBrgb(62, 37, 114)
HSLhsl(259, 51%, 30%)
HSVhsv(259, 68%, 45%)
CMYKcmyk(45.6%, 67.5%, 0%, 55.3%)
CIE-LABlab(22.17, 31.02, -40.40)
CIE-LCHlch(22.17, 50.94, 307.52°)
OKLaboklab(34.24% 0.0504 -0.1154)
OKLCHoklch(34.24% 0.126 293.6)
XYZxyz(5.6846, 3.5620, 16.3044)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2572 #597225
analogous
#253272 #3E2572 #652572
triadic
#3E2572 #723E25 #25723E
tetradic
#3E2572 #722532 #597225 #257265
square
#3E2572 #722532 #597225 #257265
split-complementary
#3E2572 #726525 #327225
monochromatic
#0D0717 #251644 #3E2572 #5734A0 #744CC5

Accessibility & contrast

On white

12.26
#3E2572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E2572
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2572#FFFFFF#000000##FFFFFF
##3E25721.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#2F3748
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3e2572;
/* rgb */ color: rgb(62, 37, 114);
/* oklch */ color: oklch(34.2% 0.126 293.6);
Tailwind
colors: {
  custom: {
    50: '#78619b',
    500: '#3e2572',
    950: '#000000',
  },
}
SCSS
$custom: #3e2572;
$custom-light: #78619b;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2572",
  "rgb": {
    "r": 62,
    "g": 37,
    "b": 114
  },
  "hsl": {
    "h": 259.481,
    "s": 50.993,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34241,
    "c": 0.12593,
    "h": 293.6
  },
  "luminance": 0.03562
}

Semantic roles & 50–950 ramp

primary
#3E2572
secondary
#89A54E
accent
#DA4DAD
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3E2572

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

Preview Lab → · Contrast checker → · Palette generator →

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