#3E2296#3E2296

#3E2296 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.175 H 285.2°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#3E2296
RGBrgb(62, 34, 150)
HSLhsl(254, 63%, 36%)
HSVhsv(254, 77%, 59%)
CMYKcmyk(58.7%, 77.3%, 0%, 41.2%)
CIE-LABlab(24.86, 43.58, -58.63)
CIE-LCHlch(24.86, 73.05, 306.62°)
OKLaboklab(37.17% 0.0458 -0.1689)
OKLCHoklch(37.17% 0.175 285.2)
XYZxyz(8.0620, 4.3697, 29.2669)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2296 #7A9622
analogous
#224096 #3E2296 #782296
triadic
#3E2296 #963E22 #22963E
tetradic
#3E2296 #962240 #7A9622 #229678
square
#3E2296 #962240 #7A9622 #229678
split-complementary
#3E2296 #967822 #409622
monochromatic
#150B32 #291764 #3E2296 #532DC8 #7859D9

Accessibility & contrast

On white

11.21
#3E2296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3E2296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2296
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2296#FFFFFF#000000##FFFFFF
##3E22961.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e2296;
/* rgb */ color: rgb(62, 34, 150);
/* oklch */ color: oklch(37.2% 0.175 285.2);
Tailwind
colors: {
  custom: {
    50: '#7e61b6',
    500: '#3e2296',
    950: '#000000',
  },
}
SCSS
$custom: #3e2296;
$custom-light: #7e61b6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2296",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 150
  },
  "hsl": {
    "h": 254.483,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37168,
    "c": 0.17496,
    "h": 285.2
  },
  "luminance": 0.0437
}

Semantic roles & 50–950 ramp

primary
#3E2296
secondary
#A5BE56
accent
#E642BE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E2296

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

Preview Lab → · Contrast checker → · Palette generator →

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