#3E21A4#3E21A4

#3E21A4 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.192 H 282.7°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#3E21A4
RGBrgb(62, 33, 164)
HSLhsl(253, 66%, 39%)
HSVhsv(253, 80%, 64%)
CMYKcmyk(62.2%, 79.9%, 0%, 35.7%)
CIE-LABlab(26.13, 48.21, -65.08)
CIE-LCHlch(26.13, 80.99, 306.53°)
OKLaboklab(38.49% 0.0423 -0.1877)
OKLCHoklch(38.49% 0.192 282.7)
XYZxyz(9.2292, 4.7915, 35.5533)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E21A4 #87A421
analogous
#2146A4 #3E21A4 #7F21A4
triadic
#3E21A4 #A43E21 #21A43E
tetradic
#3E21A4 #A42146 #87A421 #21A47F
square
#3E21A4 #A42146 #87A421 #21A47F
split-complementary
#3E21A4 #A47F21 #46A421
monochromatic
#170C3E #2B1771 #3E21A4 #522DD5 #7C60DF

Accessibility & contrast

On white

10.72
#3E21A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3E21A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E21A4
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E21A4#FFFFFF#000000##FFFFFF
##3E21A41.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A8
Deuteranopia (green-blind)
#0039A2
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3e21a4;
/* rgb */ color: rgb(62, 33, 164);
/* oklch */ color: oklch(38.5% 0.192 282.7);
Tailwind
colors: {
  custom: {
    50: '#8161c0',
    500: '#3e21a4',
    950: '#000000',
  },
}
SCSS
$custom: #3e21a4;
$custom-light: #8161c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e21a4",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 164
  },
  "hsl": {
    "h": 253.282,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.3849,
    "c": 0.1924,
    "h": 282.7
  },
  "luminance": 0.04792
}

Semantic roles & 50–950 ramp

primary
#3E21A4
secondary
#ADC45D
accent
#E93EC4
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #3E21A4

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

Preview Lab → · Contrast checker → · Palette generator →

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