#3E2896#3E2896

#3E2896 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.169 H 284.1°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#3E2896
RGBrgb(62, 40, 150)
HSLhsl(252, 58%, 37%)
HSVhsv(252, 73%, 59%)
CMYKcmyk(58.7%, 73.3%, 0%, 41.2%)
CIE-LABlab(25.99, 40.38, -56.77)
CIE-LCHlch(25.99, 69.66, 305.42°)
OKLaboklab(37.97% 0.0412 -0.1635)
OKLCHoklch(37.97% 0.169 284.1)
XYZxyz(8.2487, 4.7432, 29.3291)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2896 #809628
analogous
#284996 #3E2896 #752896
triadic
#3E2896 #963E28 #28963E
tetradic
#3E2896 #962849 #809628 #289675
square
#3E2896 #962849 #809628 #289675
split-complementary
#3E2896 #967528 #499628
monochromatic
#160E35 #2A1B66 #3E2896 #5235C6 #7A63D5

Accessibility & contrast

On white

10.78
#3E2896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3E2896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2896
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2896#FFFFFF#000000##FFFFFF
##3E28961.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#003A94
Tritanopia (blue-blind)
#0E465C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3e2896;
/* rgb */ color: rgb(62, 40, 150);
/* oklch */ color: oklch(38.0% 0.169 284.1);
Tailwind
colors: {
  custom: {
    50: '#7e64b6',
    500: '#3e2896',
    950: '#000000',
  },
}
SCSS
$custom: #3e2896;
$custom-light: #7e64b6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2896",
  "rgb": {
    "r": 62,
    "g": 40,
    "b": 150
  },
  "hsl": {
    "h": 252,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37967,
    "c": 0.16857,
    "h": 284.1
  },
  "luminance": 0.04744
}

Semantic roles & 50–950 ramp

primary
#3E2896
secondary
#A9BB5F
accent
#E147C2
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #3E2896

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

Preview Lab → · Contrast checker → · Palette generator →

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