#3E2997#3E2997

#3E2997 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.169 H 283.8°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#3E2997
RGBrgb(62, 41, 151)
HSLhsl(251, 57%, 38%)
HSVhsv(251, 73%, 59%)
CMYKcmyk(58.9%, 72.8%, 0%, 40.8%)
CIE-LABlab(26.29, 40.13, -56.90)
CIE-LCHlch(26.29, 69.63, 305.20°)
OKLaboklab(38.21% 0.0401 -0.1638)
OKLCHoklch(38.21% 0.169 283.8)
XYZxyz(8.3637, 4.8438, 29.7664)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2997 #829729
analogous
#294B97 #3E2997 #752997
triadic
#3E2997 #973E29 #29973E
tetradic
#3E2997 #97294B #829729 #299775
square
#3E2997 #97294B #829729 #299775
split-complementary
#3E2997 #977529 #4B9729
monochromatic
#160F37 #2A1C67 #3E2997 #5236C7 #7B65D5

Accessibility & contrast

On white

10.67
#3E2997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3E2997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2997
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2997#FFFFFF#000000##FFFFFF
##3E29971.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e2997;
/* rgb */ color: rgb(62, 41, 151);
/* oklch */ color: oklch(38.2% 0.169 283.8);
Tailwind
colors: {
  custom: {
    50: '#7e65b7',
    500: '#3e2997',
    950: '#000000',
  },
}
SCSS
$custom: #3e2997;
$custom-light: #7e65b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2997",
  "rgb": {
    "r": 62,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 251.455,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38205,
    "c": 0.16869,
    "h": 283.8
  },
  "luminance": 0.04844
}

Semantic roles & 50–950 ramp

primary
#3E2997
secondary
#AABB61
accent
#E147C3
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #3E2997

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

Preview Lab → · Contrast checker → · Palette generator →

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