#3E2996#3E2996

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

Color values

HEX#3E2996
RGBrgb(62, 41, 150)
HSLhsl(252, 57%, 37%)
HSVhsv(252, 73%, 59%)
CMYKcmyk(58.7%, 72.7%, 0%, 41.2%)
CIE-LABlab(26.19, 39.82, -56.44)
CIE-LCHlch(26.19, 69.07, 305.20°)
OKLaboklab(38.11% 0.0403 -0.1625)
OKLCHoklch(38.11% 0.167 283.9)
XYZxyz(8.2829, 4.8115, 29.3405)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2996 #819629
analogous
#294A96 #3E2996 #752996
triadic
#3E2996 #963E29 #29963E
tetradic
#3E2996 #96294A #819629 #299675
square
#3E2996 #96294A #819629 #299675
split-complementary
#3E2996 #967529 #4A9629
monochromatic
#160F36 #2A1C66 #3E2996 #5236C6 #7A65D5

Accessibility & contrast

On white

10.70
#3E2996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E2996
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2996#FFFFFF#000000##FFFFFF
##3E29961.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e2996;
/* rgb */ color: rgb(62, 41, 150);
/* oklch */ color: oklch(38.1% 0.167 283.9);
Tailwind
colors: {
  custom: {
    50: '#7e65b6',
    500: '#3e2996',
    950: '#000000',
  },
}
SCSS
$custom: #3e2996;
$custom-light: #7e65b6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2996",
  "rgb": {
    "r": 62,
    "g": 41,
    "b": 150
  },
  "hsl": {
    "h": 251.56,
    "s": 57.068,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38109,
    "c": 0.16744,
    "h": 283.9
  },
  "luminance": 0.04812
}

Semantic roles & 50–950 ramp

primary
#3E2996
secondary
#A9BB60
accent
#E047C3
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #3E2996

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

Preview Lab → · Contrast checker → · Palette generator →

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