#3E2B97#3E2B97

#3E2B97 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.5% C 0.166 H 283.4°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#3E2B97
RGBrgb(62, 43, 151)
HSLhsl(251, 56%, 38%)
HSVhsv(251, 72%, 59%)
CMYKcmyk(58.9%, 71.5%, 0%, 40.8%)
CIE-LABlab(26.69, 39.00, -56.23)
CIE-LCHlch(26.69, 68.43, 304.74°)
OKLaboklab(38.5% 0.0385 -0.1619)
OKLCHoklch(38.5% 0.166 283.4)
XYZxyz(8.4347, 4.9857, 29.7900)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2B97 #84972B
analogous
#2B4E97 #3E2B97 #742B97
triadic
#3E2B97 #973E2B #2B973E
tetradic
#3E2B97 #972B4E #84972B #2B9774
square
#3E2B97 #972B4E #84972B #2B9774
split-complementary
#3E2B97 #97742B #4E972B
monochromatic
#171038 #2A1D67 #3E2B97 #5239C7 #7B68D4

Accessibility & contrast

On white

10.51
#3E2B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#3E2B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2B97
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2B97#FFFFFF#000000##FFFFFF
##3E2B971.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#0B485E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3e2b97;
/* rgb */ color: rgb(62, 43, 151);
/* oklch */ color: oklch(38.5% 0.166 283.4);
Tailwind
colors: {
  custom: {
    50: '#7e66b7',
    500: '#3e2b97',
    950: '#000000',
  },
}
SCSS
$custom: #3e2b97;
$custom-light: #7e66b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2b97",
  "rgb": {
    "r": 62,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 250.556,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38496,
    "c": 0.16641,
    "h": 283.4
  },
  "luminance": 0.04986
}

Semantic roles & 50–950 ramp

primary
#3E2B97
secondary
#ABBB63
accent
#DF49C5
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #3E2B97

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

Preview Lab → · Contrast checker → · Palette generator →

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