#3E21B4#3E21B4

#3E21B4 is a dark, highly saturated violet. Relative luminance 0.054; OKLCH L 40.2% C 0.211 H 280.2°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#3E21B4
RGBrgb(62, 33, 180)
HSLhsl(252, 69%, 42%)
HSVhsv(252, 82%, 71%)
CMYKcmyk(65.6%, 81.7%, 0%, 29.4%)
CIE-LABlab(27.86, 52.86, -71.84)
CIE-LCHlch(27.86, 89.19, 306.35°)
OKLaboklab(40.2% 0.0373 -0.2074)
OKLCHoklch(40.2% 0.211 280.2)
XYZxyz(10.7661, 5.4063, 43.6473)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E21B4 #97B421
analogous
#214DB4 #3E21B4 #8821B4
triadic
#3E21B4 #B43E21 #21B43E
tetradic
#3E21B4 #B4214D #97B421 #21B488
square
#3E21B4 #B4214D #97B421 #21B488
split-complementary
#3E21B4 #B48821 #4DB421
monochromatic
#1A0E4D #2C1880 #3E21B4 #5838DA #836BE4

Accessibility & contrast

On white

10.09
#3E21B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#3E21B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E21B4
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E21B4#FFFFFF#000000##FFFFFF
##3E21B41.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B8
Deuteranopia (green-blind)
#003CB1
Tritanopia (blue-blind)
#004F6C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3e21b4;
/* rgb */ color: rgb(62, 33, 180);
/* oklch */ color: oklch(40.2% 0.211 280.2);
Tailwind
colors: {
  custom: {
    50: '#8462cc',
    500: '#3e21b4',
    950: '#000000',
  },
}
SCSS
$custom: #3e21b4;
$custom-light: #8462cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3e21b4",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 180
  },
  "hsl": {
    "h": 251.837,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.402,
    "c": 0.21072,
    "h": 280.2
  },
  "luminance": 0.05407
}

Semantic roles & 50–950 ramp

primary
#3E21B4
secondary
#B6CA67
accent
#EC3CC9
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0514
muted
#7D7A82

Preview Lab

Preview with #3E21B4

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

Preview Lab → · Contrast checker → · Palette generator →

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