#3E20A6#3E20A6

#3E20A6 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.196 H 282.5°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#3E20A6
RGBrgb(62, 32, 166)
HSLhsl(253, 68%, 39%)
HSVhsv(253, 81%, 65%)
CMYKcmyk(62.7%, 80.7%, 0%, 34.9%)
CIE-LABlab(26.19, 49.26, -66.20)
CIE-LCHlch(26.19, 82.52, 306.65°)
OKLaboklab(38.59% 0.0423 -0.191)
OKLCHoklch(38.59% 0.196 282.5)
XYZxyz(9.3839, 4.8097, 36.5029)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E20A6 #88A620
analogous
#2045A6 #3E20A6 #8120A6
triadic
#3E20A6 #A63E20 #20A63E
tetradic
#3E20A6 #A62045 #88A620 #20A681
square
#3E20A6 #A62045 #88A620 #20A681
split-complementary
#3E20A6 #A68120 #45A620
monochromatic
#180C3F #2B1673 #3E20A6 #532DD6 #7D60E0

Accessibility & contrast

On white

10.70
#3E20A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E20A6
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E20A6#FFFFFF#000000##FFFFFF
##3E20A61.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AA
Deuteranopia (green-blind)
#0039A4
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3e20a6;
/* rgb */ color: rgb(62, 32, 166);
/* oklch */ color: oklch(38.6% 0.196 282.5);
Tailwind
colors: {
  custom: {
    50: '#8161c2',
    500: '#3e20a6',
    950: '#000000',
  },
}
SCSS
$custom: #3e20a6;
$custom-light: #8161c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e20a6",
  "rgb": {
    "r": 62,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 253.433,
    "s": 67.677,
    "l": 38.824
  },
  "oklch": {
    "l": 0.3859,
    "c": 0.19558,
    "h": 282.5
  },
  "luminance": 0.0481
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3E20A6

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

Preview Lab → · Contrast checker → · Palette generator →

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