#3E218E#3E218E

#3E218E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.166 H 287.0°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#3E218E
RGBrgb(62, 33, 142)
HSLhsl(256, 62%, 34%)
HSVhsv(256, 77%, 56%)
CMYKcmyk(56.3%, 76.8%, 0%, 44.3%)
CIE-LABlab(23.88, 41.70, -55.28)
CIE-LCHlch(23.88, 69.25, 307.03°)
OKLaboklab(36.24% 0.0487 -0.1591)
OKLCHoklch(36.24% 0.166 287)
XYZxyz(7.4115, 4.0644, 25.9799)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E218E #718E21
analogous
#213B8E #3E218E #75218E
triadic
#3E218E #8E3E21 #218E3E
tetradic
#3E218E #8E213B #718E21 #218E75
square
#3E218E #8E213B #718E21 #218E75
split-complementary
#3E218E #8E7521 #3B8E21
monochromatic
#130A2B #28155C #3E218E #542DC0 #7652D7

Accessibility & contrast

On white

11.58
#3E218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3E218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E218E
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E218E#FFFFFF#000000##FFFFFF
##3E218E1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#1B3F56
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3e218e;
/* rgb */ color: rgb(62, 33, 142);
/* oklch */ color: oklch(36.2% 0.166 287.0);
Tailwind
colors: {
  custom: {
    50: '#7d60b0',
    500: '#3e218e',
    950: '#000000',
  },
}
SCSS
$custom: #3e218e;
$custom-light: #7d60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e218e",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 255.963,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36243,
    "c": 0.16637,
    "h": 287
  },
  "luminance": 0.04065
}

Semantic roles & 50–950 ramp

primary
#3E218E
secondary
#9EBA50
accent
#E542BA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E218E

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

Preview Lab → · Contrast checker → · Palette generator →

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