#3E218A#3E218A

#3E218A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.162 H 288.0°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#3E218A
RGBrgb(62, 33, 138)
HSLhsl(257, 61%, 34%)
HSVhsv(257, 76%, 54%)
CMYKcmyk(55.1%, 76.1%, 0%, 45.9%)
CIE-LABlab(23.49, 40.51, -53.43)
CIE-LCHlch(23.49, 67.05, 307.17°)
OKLaboklab(35.85% 0.0498 -0.1537)
OKLCHoklch(35.85% 0.162 288)
XYZxyz(7.1166, 3.9465, 24.4266)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E218A #6D8A21
analogous
#21388A #3E218A #72218A
triadic
#3E218A #8A3E21 #218A3E
tetradic
#3E218A #8A2138 #6D8A21 #218A72
square
#3E218A #8A2138 #6D8A21 #218A72
split-complementary
#3E218A #8A7221 #388A21
monochromatic
#120927 #281559 #3E218A #542DBB #7550D5

Accessibility & contrast

On white

11.74
#3E218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3E218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E218A
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E218A#FFFFFF#000000##FFFFFF
##3E218A1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#1F3E54
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3e218a;
/* rgb */ color: rgb(62, 33, 138);
/* oklch */ color: oklch(35.9% 0.162 288.0);
Tailwind
colors: {
  custom: {
    50: '#7c60ad',
    500: '#3e218a',
    950: '#000000',
  },
}
SCSS
$custom: #3e218a;
$custom-light: #7c60ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3e218a",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 256.571,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3585,
    "c": 0.16152,
    "h": 288
  },
  "luminance": 0.03947
}

Semantic roles & 50–950 ramp

primary
#3E218A
secondary
#9BB94E
accent
#E543B8
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E218A

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

Preview Lab → · Contrast checker → · Palette generator →

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