#3E2580#3E2580

#3E2580 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.144 H 289.6°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#3E2580
RGBrgb(62, 37, 128)
HSLhsl(256, 55%, 32%)
HSVhsv(256, 71%, 50%)
CMYKcmyk(51.6%, 71.1%, 0%, 49.8%)
CIE-LABlab(23.36, 35.28, -47.38)
CIE-LCHlch(23.36, 59.07, 306.67°)
OKLaboklab(35.47% 0.0483 -0.1359)
OKLCHoklch(35.47% 0.144 289.6)
XYZxyz(6.5433, 3.9055, 20.8270)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2580 #678025
analogous
#253980 #3E2580 #6C2580
triadic
#3E2580 #803E25 #25803E
tetradic
#3E2580 #802539 #678025 #25806C
square
#3E2580 #802539 #678025 #25806C
split-complementary
#3E2580 #806C25 #398025
monochromatic
#100A21 #271751 #3E2580 #5533AF #7452CD

Accessibility & contrast

On white

11.79
#3E2580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3E2580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2580
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2580#FFFFFF#000000##FFFFFF
##3E25801.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#00357E
Tritanopia (blue-blind)
#273C4F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3e2580;
/* rgb */ color: rgb(62, 37, 128);
/* oklch */ color: oklch(35.5% 0.144 289.6);
Tailwind
colors: {
  custom: {
    50: '#7a61a6',
    500: '#3e2580',
    950: '#000000',
  },
}
SCSS
$custom: #3e2580;
$custom-light: #7a61a6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2580",
  "rgb": {
    "r": 62,
    "g": 37,
    "b": 128
  },
  "hsl": {
    "h": 256.484,
    "s": 55.152,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35468,
    "c": 0.14426,
    "h": 289.6
  },
  "luminance": 0.03906
}

Semantic roles & 50–950 ramp

primary
#3E2580
secondary
#96B150
accent
#DE49B6
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E2580

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

Preview Lab → · Contrast checker → · Palette generator →

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