#3E1777#3E1777

#3E1777 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.150 H 295.2°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#3E1777
RGBrgb(62, 23, 119)
HSLhsl(264, 68%, 28%)
HSVhsv(264, 81%, 47%)
CMYKcmyk(47.9%, 80.7%, 0%, 53.3%)
CIE-LABlab(19.92, 39.99, -47.28)
CIE-LCHlch(19.92, 61.93, 310.23°)
OKLaboklab(32.78% 0.0637 -0.1355)
OKLCHoklch(32.78% 0.15 295.2)
XYZxyz(5.6219, 2.9687, 17.7260)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1777 #507717
analogous
#172077 #3E1777 #6E1777
triadic
#3E1777 #773E17 #17773E
tetradic
#3E1777 #771720 #507717 #17776E
square
#3E1777 #771720 #507717 #17776E
split-complementary
#3E1777 #776E17 #207717
monochromatic
#0D051A #230D44 #3E1777 #5921AA #7531D7

Accessibility & contrast

On white

13.18
#3E1777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1777
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1777#FFFFFF#000000##FFFFFF
##3E17771.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317A
Deuteranopia (green-blind)
#002F75
Tritanopia (blue-blind)
#2E3247
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3e1777;
/* rgb */ color: rgb(62, 23, 119);
/* oklch */ color: oklch(32.8% 0.150 295.2);
Tailwind
colors: {
  custom: {
    50: '#7a599f',
    500: '#3e1777',
    950: '#000000',
  },
}
SCSS
$custom: #3e1777;
$custom-light: #7a599f;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1777",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 264.375,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3278,
    "c": 0.14974,
    "h": 295.2
  },
  "luminance": 0.02969
}

Semantic roles & 50–950 ramp

primary
#3E1777
secondary
#7FAC3E
accent
#EA3DA4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3E1777

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

Preview Lab → · Contrast checker → · Palette generator →

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