#3E21B3#3E21B3

#3E21B3 is a dark, highly saturated violet. Relative luminance 0.054; OKLCH L 40.1% C 0.210 H 280.3°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#3E21B3
RGBrgb(62, 33, 179)
HSLhsl(252, 69%, 42%)
HSVhsv(252, 82%, 70%)
CMYKcmyk(65.4%, 81.6%, 0%, 29.8%)
CIE-LABlab(27.75, 52.57, -71.43)
CIE-LCHlch(27.75, 88.69, 306.35°)
OKLaboklab(40.09% 0.0377 -0.2062)
OKLCHoklch(40.09% 0.21 280.3)
XYZxyz(10.6646, 5.3657, 43.1128)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E21B3 #96B321
analogous
#214DB3 #3E21B3 #8721B3
triadic
#3E21B3 #B33E21 #21B33E
tetradic
#3E21B3 #B3214D #96B321 #21B387
square
#3E21B3 #B3214D #96B321 #21B387
split-complementary
#3E21B3 #B38721 #4DB321
monochromatic
#1A0E4C #2C177F #3E21B3 #5737DA #836BE4

Accessibility & contrast

On white

10.13
#3E21B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#3E21B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E21B3
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E21B3#FFFFFF#000000##FFFFFF
##3E21B31.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B7
Deuteranopia (green-blind)
#003CB0
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3e21b3;
/* rgb */ color: rgb(62, 33, 179);
/* oklch */ color: oklch(40.1% 0.210 280.3);
Tailwind
colors: {
  custom: {
    50: '#8462cb',
    500: '#3e21b3',
    950: '#000000',
  },
}
SCSS
$custom: #3e21b3;
$custom-light: #8462cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3e21b3",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 179
  },
  "hsl": {
    "h": 251.918,
    "s": 68.868,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40091,
    "c": 0.20959,
    "h": 280.3
  },
  "luminance": 0.05367
}

Semantic roles & 50–950 ramp

primary
#3E21B3
secondary
#B6CA66
accent
#EC3CC9
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3E21B3

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

Preview Lab → · Contrast checker → · Palette generator →

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