#3E218C#3E218C

#3E218C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.164 H 287.5°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#3E218C
RGBrgb(62, 33, 140)
HSLhsl(256, 62%, 34%)
HSVhsv(256, 76%, 55%)
CMYKcmyk(55.7%, 76.4%, 0%, 45.1%)
CIE-LABlab(23.69, 41.11, -54.36)
CIE-LCHlch(23.69, 68.15, 307.10°)
OKLaboklab(36.05% 0.0493 -0.1564)
OKLCHoklch(36.05% 0.164 287.5)
XYZxyz(7.2627, 4.0049, 25.1962)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E218C #6F8C21
analogous
#213A8C #3E218C #74218C
triadic
#3E218C #8C3E21 #218C3E
tetradic
#3E218C #8C213A #6F8C21 #218C74
square
#3E218C #8C213A #6F8C21 #218C74
split-complementary
#3E218C #8C7421 #3A8C21
monochromatic
#120A29 #28155A #3E218C #542DBE #7551D6

Accessibility & contrast

On white

11.66
#3E218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E218C
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E218C#FFFFFF#000000##FFFFFF
##3E218C1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00358A
Tritanopia (blue-blind)
#1D3F55
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3e218c;
/* rgb */ color: rgb(62, 33, 140);
/* oklch */ color: oklch(36.0% 0.164 287.5);
Tailwind
colors: {
  custom: {
    50: '#7c60af',
    500: '#3e218c',
    950: '#000000',
  },
}
SCSS
$custom: #3e218c;
$custom-light: #7c60af;
$custom-dark: #000000;
JSON
{
  "hex": "#3e218c",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 256.262,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36046,
    "c": 0.16396,
    "h": 287.5
  },
  "luminance": 0.04005
}

Semantic roles & 50–950 ramp

primary
#3E218C
secondary
#9DB94F
accent
#E543B9
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E218C

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

Preview Lab → · Contrast checker → · Palette generator →

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