#3E218B#3E218B

#3E218B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.163 H 287.7°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#3E218B
RGBrgb(62, 33, 139)
HSLhsl(256, 62%, 34%)
HSVhsv(256, 76%, 55%)
CMYKcmyk(55.4%, 76.3%, 0%, 45.5%)
CIE-LABlab(23.59, 40.81, -53.90)
CIE-LCHlch(23.59, 67.60, 307.13°)
OKLaboklab(35.95% 0.0495 -0.155)
OKLCHoklch(35.95% 0.163 287.7)
XYZxyz(7.1893, 3.9756, 24.8096)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E218B #6E8B21
analogous
#21398B #3E218B #73218B
triadic
#3E218B #8B3E21 #218B3E
tetradic
#3E218B #8B2139 #6E8B21 #218B73
square
#3E218B #8B2139 #6E8B21 #218B73
split-complementary
#3E218B #8B7321 #398B21
monochromatic
#120A28 #28155A #3E218B #542DBC #7551D6

Accessibility & contrast

On white

11.70
#3E218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3E218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E218B
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E218B#FFFFFF#000000##FFFFFF
##3E218B1.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#1E3E54
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3e218b;
/* rgb */ color: rgb(62, 33, 139);
/* oklch */ color: oklch(35.9% 0.163 287.7);
Tailwind
colors: {
  custom: {
    50: '#7c60ae',
    500: '#3e218b',
    950: '#000000',
  },
}
SCSS
$custom: #3e218b;
$custom-light: #7c60ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3e218b",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 256.415,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35948,
    "c": 0.16274,
    "h": 287.7
  },
  "luminance": 0.03976
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3E218B

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

Preview Lab → · Contrast checker → · Palette generator →

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