#3E2897#3E2897

#3E2897 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.170 H 283.9°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#3E2897
RGBrgb(62, 40, 151)
HSLhsl(252, 58%, 37%)
HSVhsv(252, 74%, 59%)
CMYKcmyk(58.9%, 73.5%, 0%, 40.8%)
CIE-LABlab(26.09, 40.69, -57.23)
CIE-LCHlch(26.09, 70.22, 305.41°)
OKLaboklab(38.06% 0.0409 -0.1648)
OKLCHoklch(38.06% 0.17 283.9)
XYZxyz(8.3296, 4.7756, 29.7550)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2897 #819728
analogous
#284997 #3E2897 #762897
triadic
#3E2897 #973E28 #28973E
tetradic
#3E2897 #972849 #819728 #289776
square
#3E2897 #972849 #819728 #289776
split-complementary
#3E2897 #977628 #499728
monochromatic
#160E36 #2A1B67 #3E2897 #5235C7 #7A64D6

Accessibility & contrast

On white

10.74
#3E2897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3E2897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2897
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2897#FFFFFF#000000##FFFFFF
##3E28971.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#0C465D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3e2897;
/* rgb */ color: rgb(62, 40, 151);
/* oklch */ color: oklch(38.1% 0.170 283.9);
Tailwind
colors: {
  custom: {
    50: '#7e64b7',
    500: '#3e2897',
    950: '#000000',
  },
}
SCSS
$custom: #3e2897;
$custom-light: #7e64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2897",
  "rgb": {
    "r": 62,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 251.892,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38063,
    "c": 0.16982,
    "h": 283.9
  },
  "luminance": 0.04776
}

Semantic roles & 50–950 ramp

primary
#3E2897
secondary
#A9BC5F
accent
#E146C3
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #3E2897

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

Preview Lab → · Contrast checker → · Palette generator →

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