#3E2579#3E2579

#3E2579 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.8% C 0.135 H 291.5°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#3E2579
RGBrgb(62, 37, 121)
HSLhsl(258, 53%, 31%)
HSVhsv(258, 69%, 47%)
CMYKcmyk(48.8%, 69.4%, 0%, 52.5%)
CIE-LABlab(22.75, 33.15, -43.93)
CIE-LCHlch(22.75, 55.03, 307.03°)
OKLaboklab(34.84% 0.0495 -0.1258)
OKLCHoklch(34.84% 0.135 291.5)
XYZxyz(6.0984, 3.7275, 18.4836)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2579 #607925
analogous
#253679 #3E2579 #682579
triadic
#3E2579 #793E25 #25793E
tetradic
#3E2579 #792536 #607925 #257968
square
#3E2579 #792536 #607925 #257968
split-complementary
#3E2579 #796825 #367925
monochromatic
#0E081B #26174A #3E2579 #5633A8 #734FC9

Accessibility & contrast

On white

12.03
#3E2579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3E2579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2579
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2579#FFFFFF#000000##FFFFFF
##3E25791.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003577
Tritanopia (blue-blind)
#2C3A4B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e2579;
/* rgb */ color: rgb(62, 37, 121);
/* oklch */ color: oklch(34.8% 0.135 291.5);
Tailwind
colors: {
  custom: {
    50: '#7961a0',
    500: '#3e2579',
    950: '#000000',
  },
}
SCSS
$custom: #3e2579;
$custom-light: #7961a0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2579",
  "rgb": {
    "r": 62,
    "g": 37,
    "b": 121
  },
  "hsl": {
    "h": 257.857,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34844,
    "c": 0.13518,
    "h": 291.5
  },
  "luminance": 0.03728
}

Semantic roles & 50–950 ramp

primary
#3E2579
secondary
#90AB4E
accent
#DD4BB1
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#0A050F
muted
#7C797E

Preview Lab

Preview with #3E2579

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

Preview Lab → · Contrast checker → · Palette generator →

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