#3E218F#3E218F

#3E218F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.168 H 286.8°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#3E218F
RGBrgb(62, 33, 143)
HSLhsl(256, 63%, 35%)
HSVhsv(256, 77%, 56%)
CMYKcmyk(56.6%, 76.9%, 0%, 43.9%)
CIE-LABlab(23.98, 42.00, -55.74)
CIE-LCHlch(23.98, 69.79, 307.00°)
OKLaboklab(36.34% 0.0485 -0.1604)
OKLCHoklch(36.34% 0.168 286.8)
XYZxyz(7.4869, 4.0946, 26.3771)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E218F #728F21
analogous
#213B8F #3E218F #75218F
triadic
#3E218F #8F3E21 #218F3E
tetradic
#3E218F #8F213B #728F21 #218F75
square
#3E218F #8F213B #728F21 #218F75
split-complementary
#3E218F #8F7521 #3B8F21
monochromatic
#130A2C #28165D #3E218F #542CC1 #7653D7

Accessibility & contrast

On white

11.54
#3E218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3E218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E218F
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E218F#FFFFFF#000000##FFFFFF
##3E218F1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#1A4057
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3e218f;
/* rgb */ color: rgb(62, 33, 143);
/* oklch */ color: oklch(36.3% 0.168 286.8);
Tailwind
colors: {
  custom: {
    50: '#7d60b1',
    500: '#3e218f',
    950: '#000000',
  },
}
SCSS
$custom: #3e218f;
$custom-light: #7d60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e218f",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 255.818,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36342,
    "c": 0.16758,
    "h": 286.8
  },
  "luminance": 0.04095
}

Semantic roles & 50–950 ramp

primary
#3E218F
secondary
#9FBB51
accent
#E642BB
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E218F

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

Preview Lab → · Contrast checker → · Palette generator →

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