#3E1678#3E1678

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

Color values

HEX#3E1678
RGBrgb(62, 22, 120)
HSLhsl(264, 69%, 28%)
HSVhsv(264, 82%, 47%)
CMYKcmyk(48.3%, 81.7%, 0%, 52.9%)
CIE-LABlab(19.86, 40.72, -48.02)
CIE-LCHlch(19.86, 62.96, 310.30°)
OKLaboklab(32.77% 0.0642 -0.1377)
OKLCHoklch(32.77% 0.152 295)
XYZxyz(5.6628, 2.9539, 18.0374)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1678 #507816
analogous
#161F78 #3E1678 #6F1678
triadic
#3E1678 #783E16 #16783E
tetradic
#3E1678 #78161F #507816 #16786F
square
#3E1678 #78161F #507816 #16786F
split-complementary
#3E1678 #786F16 #1F7816
monochromatic
#0D051A #230D44 #3E1678 #591FAC #752FD9

Accessibility & contrast

On white

13.20
#3E1678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1678
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1678#FFFFFF#000000##FFFFFF
##3E16781.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e1678;
/* rgb */ color: rgb(62, 22, 120);
/* oklch */ color: oklch(32.8% 0.152 295.0);
Tailwind
colors: {
  custom: {
    50: '#7a59a0',
    500: '#3e1678',
    950: '#000000',
  },
}
SCSS
$custom: #3e1678;
$custom-light: #7a59a0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1678",
  "rgb": {
    "r": 62,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 264.49,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32768,
    "c": 0.15191,
    "h": 295
  },
  "luminance": 0.02954
}

Semantic roles & 50–950 ramp

primary
#3E1678
secondary
#7FAD3C
accent
#EC3CA4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3E1678

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

Preview Lab → · Contrast checker → · Palette generator →

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