#3E1779#3E1779

#3E1779 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.152 H 294.5°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#3E1779
RGBrgb(62, 23, 121)
HSLhsl(264, 68%, 28%)
HSVhsv(264, 81%, 47%)
CMYKcmyk(48.8%, 81%, 0%, 52.5%)
CIE-LABlab(20.11, 40.55, -48.24)
CIE-LCHlch(20.11, 63.02, 310.05°)
OKLaboklab(32.98% 0.063 -0.1384)
OKLCHoklch(32.98% 0.152 294.5)
XYZxyz(5.7432, 3.0172, 18.3652)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1779 #527917
analogous
#172179 #3E1779 #6F1779
triadic
#3E1779 #793E17 #17793E
tetradic
#3E1779 #791721 #527917 #17796F
square
#3E1779 #791721 #527917 #17796F
split-complementary
#3E1779 #796F17 #217917
monochromatic
#0D051A #240D46 #3E1779 #5821AC #7432D8

Accessibility & contrast

On white

13.10
#3E1779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3E1779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1779
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1779#FFFFFF#000000##FFFFFF
##3E17791.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#2C3248
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e1779;
/* rgb */ color: rgb(62, 23, 121);
/* oklch */ color: oklch(33.0% 0.152 294.5);
Tailwind
colors: {
  custom: {
    50: '#7a59a1',
    500: '#3e1779',
    950: '#000000',
  },
}
SCSS
$custom: #3e1779;
$custom-light: #7a59a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1779",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 263.878,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32976,
    "c": 0.15204,
    "h": 294.5
  },
  "luminance": 0.03017
}

Semantic roles & 50–950 ramp

primary
#3E1779
secondary
#81AE3E
accent
#EB3DA6
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1779

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

Preview Lab → · Contrast checker → · Palette generator →

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