#3E21AA#3E21AA

#3E21AA is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.199 H 281.7°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#3E21AA
RGBrgb(62, 33, 170)
HSLhsl(253, 67%, 40%)
HSVhsv(253, 81%, 67%)
CMYKcmyk(63.5%, 80.6%, 0%, 33.3%)
CIE-LABlab(26.77, 49.96, -67.65)
CIE-LCHlch(26.77, 84.10, 306.45°)
OKLaboklab(39.13% 0.0405 -0.1952)
OKLCHoklch(39.13% 0.199 281.7)
XYZxyz(9.7839, 5.0134, 38.4745)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E21AA #8DAA21
analogous
#2148AA #3E21AA #8321AA
triadic
#3E21AA #AA3E21 #21AA3E
tetradic
#3E21AA #AA2148 #8DAA21 #21AA83
square
#3E21AA #AA2148 #8DAA21 #21AA83
split-complementary
#3E21AA #AA8321 #48AA21
monochromatic
#190D43 #2B1777 #3E21AA #5431D7 #7F64E1

Accessibility & contrast

On white

10.49
#3E21AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#3E21AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E21AA
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E21AA#FFFFFF#000000##FFFFFF
##3E21AA1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AE
Deuteranopia (green-blind)
#003AA8
Tritanopia (blue-blind)
#004B66
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3e21aa;
/* rgb */ color: rgb(62, 33, 170);
/* oklch */ color: oklch(39.1% 0.199 281.7);
Tailwind
colors: {
  custom: {
    50: '#8261c5',
    500: '#3e21aa',
    950: '#000000',
  },
}
SCSS
$custom: #3e21aa;
$custom-light: #8261c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e21aa",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 252.701,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39125,
    "c": 0.19933,
    "h": 281.7
  },
  "luminance": 0.05014
}

Semantic roles & 50–950 ramp

primary
#3E21AA
secondary
#B1C661
accent
#EA3DC6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3E21AA

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

Preview Lab → · Contrast checker → · Palette generator →

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