#3E2396#3E2396

#3E2396 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.174 H 285.0°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#3E2396
RGBrgb(62, 35, 150)
HSLhsl(254, 62%, 36%)
HSVhsv(254, 77%, 59%)
CMYKcmyk(58.7%, 76.7%, 0%, 41.2%)
CIE-LABlab(25.04, 43.06, -58.33)
CIE-LCHlch(25.04, 72.51, 306.44°)
OKLaboklab(37.29% 0.045 -0.168)
OKLCHoklch(37.29% 0.174 285)
XYZxyz(8.0910, 4.4277, 29.2765)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2396 #7B9623
analogous
#234296 #3E2396 #782396
triadic
#3E2396 #963E23 #23963E
tetradic
#3E2396 #962342 #7B9623 #239678
square
#3E2396 #962342 #7B9623 #239678
split-complementary
#3E2396 #967823 #429623
monochromatic
#150C33 #291764 #3E2396 #532FC8 #785BD9

Accessibility & contrast

On white

11.14
#3E2396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3E2396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2396
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2396#FFFFFF#000000##FFFFFF
##3E23961.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003894
Tritanopia (blue-blind)
#0F435B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e2396;
/* rgb */ color: rgb(62, 35, 150);
/* oklch */ color: oklch(37.3% 0.174 285.0);
Tailwind
colors: {
  custom: {
    50: '#7e61b6',
    500: '#3e2396',
    950: '#000000',
  },
}
SCSS
$custom: #3e2396;
$custom-light: #7e61b6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2396",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 150
  },
  "hsl": {
    "h": 254.087,
    "s": 62.162,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37294,
    "c": 0.17394,
    "h": 285
  },
  "luminance": 0.04428
}

Semantic roles & 50–950 ramp

primary
#3E2396
secondary
#A5BD58
accent
#E543BF
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E2396

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

Preview Lab → · Contrast checker → · Palette generator →

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