#3E21AE#3E21AE

#3E21AE is a dark, highly saturated violet. Relative luminance 0.052; OKLCH L 39.6% C 0.204 H 281.1°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#3E21AE
RGBrgb(62, 33, 174)
HSLhsl(252, 68%, 41%)
HSVhsv(252, 81%, 68%)
CMYKcmyk(64.4%, 81%, 0%, 31.8%)
CIE-LABlab(27.21, 51.13, -69.34)
CIE-LCHlch(27.21, 86.15, 306.40°)
OKLaboklab(39.55% 0.0392 -0.2001)
OKLCHoklch(39.55% 0.204 281.1)
XYZxyz(10.1680, 5.1671, 40.4977)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E21AE #91AE21
analogous
#214BAE #3E21AE #8421AE
triadic
#3E21AE #AE3E21 #21AE3E
tetradic
#3E21AE #AE214B #91AE21 #21AE84
square
#3E21AE #AE214B #91AE21 #21AE84
split-complementary
#3E21AE #AE8421 #4BAE21
monochromatic
#190D47 #2C177B #3E21AE #5634D8 #8067E2

Accessibility & contrast

On white

10.33
#3E21AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#3E21AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E21AE
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E21AE#FFFFFF#000000##FFFFFF
##3E21AE1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B2
Deuteranopia (green-blind)
#003BAC
Tritanopia (blue-blind)
#004C68
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3e21ae;
/* rgb */ color: rgb(62, 33, 174);
/* oklch */ color: oklch(39.6% 0.204 281.1);
Tailwind
colors: {
  custom: {
    50: '#8362c8',
    500: '#3e21ae',
    950: '#000000',
  },
}
SCSS
$custom: #3e21ae;
$custom-light: #8362c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3e21ae",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 174
  },
  "hsl": {
    "h": 252.34,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39552,
    "c": 0.20391,
    "h": 281.1
  },
  "luminance": 0.05168
}

Semantic roles & 50–950 ramp

primary
#3E21AE
secondary
#B3C863
accent
#EB3DC7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3E21AE

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

Preview Lab → · Contrast checker → · Palette generator →

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