#3E2B96#3E2B96

#3E2B96 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.4% C 0.165 H 283.5°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#3E2B96
RGBrgb(62, 43, 150)
HSLhsl(251, 55%, 38%)
HSVhsv(251, 71%, 59%)
CMYKcmyk(58.7%, 71.3%, 0%, 41.2%)
CIE-LABlab(26.60, 38.68, -55.76)
CIE-LCHlch(26.60, 67.87, 304.75°)
OKLaboklab(38.4% 0.0386 -0.1605)
OKLCHoklch(38.4% 0.165 283.5)
XYZxyz(8.3538, 4.9534, 29.3641)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2B96 #83962B
analogous
#2B4E96 #3E2B96 #732B96
triadic
#3E2B96 #963E2B #2B963E
tetradic
#3E2B96 #962B4E #83962B #2B9673
square
#3E2B96 #962B4E #83962B #2B9673
split-complementary
#3E2B96 #96732B #4E962B
monochromatic
#171037 #2A1D66 #3E2B96 #5239C6 #7B68D4

Accessibility & contrast

On white

10.55
#3E2B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#3E2B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2B96
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2B96#FFFFFF#000000##FFFFFF
##3E2B961.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#0D475D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3e2b96;
/* rgb */ color: rgb(62, 43, 150);
/* oklch */ color: oklch(38.4% 0.165 283.5);
Tailwind
colors: {
  custom: {
    50: '#7d66b6',
    500: '#3e2b96',
    950: '#000000',
  },
}
SCSS
$custom: #3e2b96;
$custom-light: #7d66b6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2b96",
  "rgb": {
    "r": 62,
    "g": 43,
    "b": 150
  },
  "hsl": {
    "h": 250.654,
    "s": 55.44,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38402,
    "c": 0.16513,
    "h": 283.5
  },
  "luminance": 0.04954
}

Semantic roles & 50–950 ramp

primary
#3E2B96
secondary
#ABBA63
accent
#DF49C4
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #3E2B96

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

Preview Lab → · Contrast checker → · Palette generator →

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