#3E21A2#3E21A2

#3E21A2 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.190 H 283.1°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#3E21A2
RGBrgb(62, 33, 162)
HSLhsl(253, 66%, 38%)
HSVhsv(253, 80%, 64%)
CMYKcmyk(61.7%, 79.6%, 0%, 36.5%)
CIE-LABlab(25.92, 47.62, -64.21)
CIE-LCHlch(25.92, 79.95, 306.56°)
OKLaboklab(38.28% 0.0429 -0.1852)
OKLCHoklch(38.28% 0.19 283.1)
XYZxyz(9.0500, 4.7199, 34.6095)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E21A2 #85A221
analogous
#2145A2 #3E21A2 #7E21A2
triadic
#3E21A2 #A23E21 #21A23E
tetradic
#3E21A2 #A22145 #85A221 #21A27E
square
#3E21A2 #A22145 #85A221 #21A27E
split-complementary
#3E21A2 #A27E21 #45A221
monochromatic
#170C3C #2B176F #3E21A2 #522CD4 #7C5FDE

Accessibility & contrast

On white

10.80
#3E21A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3E21A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E21A2
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E21A2#FFFFFF#000000##FFFFFF
##3E21A21.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A6
Deuteranopia (green-blind)
#0039A0
Tritanopia (blue-blind)
#004761
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3e21a2;
/* rgb */ color: rgb(62, 33, 162);
/* oklch */ color: oklch(38.3% 0.190 283.1);
Tailwind
colors: {
  custom: {
    50: '#8061bf',
    500: '#3e21a2',
    950: '#000000',
  },
}
SCSS
$custom: #3e21a2;
$custom-light: #8061bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3e21a2",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 162
  },
  "hsl": {
    "h": 253.488,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38281,
    "c": 0.19008,
    "h": 283.1
  },
  "luminance": 0.0472
}

Semantic roles & 50–950 ramp

primary
#3E21A2
secondary
#ACC35C
accent
#E93FC3
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #3E21A2

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

Preview Lab → · Contrast checker → · Palette generator →

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