#3E218D#3E218D

#3E218D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.165 H 287.3°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#3E218D
RGBrgb(62, 33, 141)
HSLhsl(256, 62%, 34%)
HSVhsv(256, 77%, 55%)
CMYKcmyk(56%, 76.6%, 0%, 44.7%)
CIE-LABlab(23.79, 41.40, -54.82)
CIE-LCHlch(23.79, 68.70, 307.06°)
OKLaboklab(36.14% 0.049 -0.1577)
OKLCHoklch(36.14% 0.165 287.3)
XYZxyz(7.3368, 4.0345, 25.5863)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E218D #708D21
analogous
#213A8D #3E218D #74218D
triadic
#3E218D #8D3E21 #218D3E
tetradic
#3E218D #8D213A #708D21 #218D74
square
#3E218D #8D213A #708D21 #218D74
split-complementary
#3E218D #8D7421 #3A8D21
monochromatic
#120A2A #28155B #3E218D #542DBF #7652D6

Accessibility & contrast

On white

11.62
#3E218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E218D
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E218D#FFFFFF#000000##FFFFFF
##3E218D1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#1C3F55
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3e218d;
/* rgb */ color: rgb(62, 33, 141);
/* oklch */ color: oklch(36.1% 0.165 287.3);
Tailwind
colors: {
  custom: {
    50: '#7d60af',
    500: '#3e218d',
    950: '#000000',
  },
}
SCSS
$custom: #3e218d;
$custom-light: #7d60af;
$custom-dark: #000000;
JSON
{
  "hex": "#3e218d",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 256.111,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36144,
    "c": 0.16516,
    "h": 287.3
  },
  "luminance": 0.04035
}

Semantic roles & 50–950 ramp

primary
#3E218D
secondary
#9DBA50
accent
#E543BA
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E218D

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

Preview Lab → · Contrast checker → · Palette generator →

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