#3E2196#3E2196

#3E2196 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.176 H 285.3°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#3E2196
RGBrgb(62, 33, 150)
HSLhsl(255, 64%, 36%)
HSVhsv(255, 78%, 59%)
CMYKcmyk(58.7%, 78%, 0%, 41.2%)
CIE-LABlab(24.68, 44.08, -58.92)
CIE-LCHlch(24.68, 73.58, 306.80°)
OKLaboklab(37.04% 0.0465 -0.1697)
OKLCHoklch(37.04% 0.176 285.3)
XYZxyz(8.0338, 4.3134, 29.2575)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2196 #799621
analogous
#213E96 #3E2196 #782196
triadic
#3E2196 #963E21 #21963E
tetradic
#3E2196 #96213E #799621 #219678
square
#3E2196 #96213E #799621 #219678
split-complementary
#3E2196 #967821 #3E9621
monochromatic
#150B32 #291664 #3E2196 #532CC8 #7857DA

Accessibility & contrast

On white

11.27
#3E2196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3E2196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2196
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2196#FFFFFF#000000##FFFFFF
##3E21961.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.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: #3e2196;
/* rgb */ color: rgb(62, 33, 150);
/* oklch */ color: oklch(37.0% 0.176 285.3);
Tailwind
colors: {
  custom: {
    50: '#7e60b6',
    500: '#3e2196',
    950: '#000000',
  },
}
SCSS
$custom: #3e2196;
$custom-light: #7e60b6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2196",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 254.872,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37044,
    "c": 0.17596,
    "h": 285.3
  },
  "luminance": 0.04314
}

Semantic roles & 50–950 ramp

primary
#3E2196
secondary
#A4BE55
accent
#E741BE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E2196

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

Preview Lab → · Contrast checker → · Palette generator →

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