#3E20A7#3E20A7

#3E20A7 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.197 H 282.3°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#3E20A7
RGBrgb(62, 32, 167)
HSLhsl(253, 68%, 39%)
HSVhsv(253, 81%, 65%)
CMYKcmyk(62.9%, 80.8%, 0%, 34.5%)
CIE-LABlab(26.29, 49.55, -66.63)
CIE-LCHlch(26.29, 83.03, 306.64°)
OKLaboklab(38.7% 0.042 -0.1922)
OKLCHoklch(38.7% 0.197 282.3)
XYZxyz(9.4760, 4.8465, 36.9878)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E20A7 #89A720
analogous
#2046A7 #3E20A7 #8220A7
triadic
#3E20A7 #A73E20 #20A73E
tetradic
#3E20A7 #A72046 #89A720 #20A782
square
#3E20A7 #A72046 #89A720 #20A782
split-complementary
#3E20A7 #A78220 #46A720
monochromatic
#180C40 #2B1674 #3E20A7 #532DD7 #7D61E1

Accessibility & contrast

On white

10.66
#3E20A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3E20A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E20A7
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E20A7#FFFFFF#000000##FFFFFF
##3E20A71.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AB
Deuteranopia (green-blind)
#0039A5
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3e20a7;
/* rgb */ color: rgb(62, 32, 167);
/* oklch */ color: oklch(38.7% 0.197 282.3);
Tailwind
colors: {
  custom: {
    50: '#8161c2',
    500: '#3e20a7',
    950: '#000000',
  },
}
SCSS
$custom: #3e20a7;
$custom-light: #8161c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e20a7",
  "rgb": {
    "r": 62,
    "g": 32,
    "b": 167
  },
  "hsl": {
    "h": 253.333,
    "s": 67.839,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38697,
    "c": 0.19673,
    "h": 282.3
  },
  "luminance": 0.04847
}

Semantic roles & 50–950 ramp

primary
#3E20A7
secondary
#AEC55D
accent
#EB3DC4
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3E20A7

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

Preview Lab → · Contrast checker → · Palette generator →

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