#3E20A2#3E20A2

#3E20A2 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.191 H 283.2°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#3E20A2
RGBrgb(62, 32, 162)
HSLhsl(254, 67%, 38%)
HSVhsv(254, 80%, 64%)
CMYKcmyk(61.7%, 80.2%, 0%, 36.5%)
CIE-LABlab(25.76, 48.09, -64.48)
CIE-LCHlch(25.76, 80.44, 306.72°)
OKLaboklab(38.17% 0.0435 -0.1859)
OKLCHoklch(38.17% 0.191 283.2)
XYZxyz(9.0227, 4.6652, 34.6004)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E20A2 #84A220
analogous
#2043A2 #3E20A2 #7F20A2
triadic
#3E20A2 #A23E20 #20A23E
tetradic
#3E20A2 #A22043 #84A220 #20A27F
square
#3E20A2 #A22043 #84A220 #20A27F
split-complementary
#3E20A2 #A27F20 #43A220
monochromatic
#170C3C #2A166F #3E20A2 #522AD5 #7B5DDF

Accessibility & contrast

On white

10.86
#3E20A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3E20A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E20A2
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E20A2#FFFFFF#000000##FFFFFF
##3E20A21.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.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: #3e20a2;
/* rgb */ color: rgb(62, 32, 162);
/* oklch */ color: oklch(38.2% 0.191 283.2);
Tailwind
colors: {
  custom: {
    50: '#8160bf',
    500: '#3e20a2',
    950: '#000000',
  },
}
SCSS
$custom: #3e20a2;
$custom-light: #8160bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3e20a2",
  "rgb": {
    "r": 62,
    "g": 32,
    "b": 162
  },
  "hsl": {
    "h": 253.846,
    "s": 67.01,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38168,
    "c": 0.19097,
    "h": 283.2
  },
  "luminance": 0.04666
}

Semantic roles & 50–950 ramp

primary
#3E20A2
secondary
#ABC35A
accent
#EA3EC2
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #3E20A2

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

Preview Lab → · Contrast checker → · Palette generator →

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