#3E1579#3E1579

#3E1579 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.154 H 294.8°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#3E1579
RGBrgb(62, 21, 121)
HSLhsl(265, 70%, 28%)
HSVhsv(265, 83%, 47%)
CMYKcmyk(48.8%, 82.6%, 0%, 52.5%)
CIE-LABlab(19.81, 41.44, -48.74)
CIE-LCHlch(19.81, 63.98, 310.37°)
OKLaboklab(32.76% 0.0646 -0.1398)
OKLCHoklch(32.76% 0.154 294.8)
XYZxyz(5.7050, 2.9408, 18.3525)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1579 #507915
analogous
#151E79 #3E1579 #701579
triadic
#3E1579 #793E15 #15793E
tetradic
#3E1579 #79151E #507915 #157970
square
#3E1579 #79151E #507915 #157970
split-complementary
#3E1579 #797015 #1E7915
monochromatic
#0D051A #230C45 #3E1579 #591EAD #752EDB

Accessibility & contrast

On white

13.22
#3E1579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3E1579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1579
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1579#FFFFFF#000000##FFFFFF
##3E15791.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002E77
Tritanopia (blue-blind)
#2D3247
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3e1579;
/* rgb */ color: rgb(62, 21, 121);
/* oklch */ color: oklch(32.8% 0.154 294.8);
Tailwind
colors: {
  custom: {
    50: '#7a58a1',
    500: '#3e1579',
    950: '#000000',
  },
}
SCSS
$custom: #3e1579;
$custom-light: #7a58a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1579",
  "rgb": {
    "r": 62,
    "g": 21,
    "b": 121
  },
  "hsl": {
    "h": 264.6,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32762,
    "c": 0.15403,
    "h": 294.8
  },
  "luminance": 0.02941
}

Semantic roles & 50–950 ramp

primary
#3E1579
secondary
#7FAF3B
accent
#ED3BA4
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1579

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

Preview Lab → · Contrast checker → · Palette generator →

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