#3E20A1#3E20A1

#3E20A1 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.190 H 283.4°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#3E20A1
RGBrgb(62, 32, 161)
HSLhsl(254, 67%, 38%)
HSVhsv(254, 80%, 63%)
CMYKcmyk(61.5%, 80.1%, 0%, 36.9%)
CIE-LABlab(25.65, 47.80, -64.05)
CIE-LCHlch(25.65, 79.92, 306.73°)
OKLaboklab(38.06% 0.0438 -0.1847)
OKLCHoklch(38.06% 0.19 283.4)
XYZxyz(8.9342, 4.6298, 34.1341)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E20A1 #83A120
analogous
#2043A1 #3E20A1 #7E20A1
triadic
#3E20A1 #A13E20 #20A13E
tetradic
#3E20A1 #A12043 #83A120 #20A17E
square
#3E20A1 #A12043 #83A120 #20A17E
split-complementary
#3E20A1 #A17E20 #43A120
monochromatic
#170C3B #2A166E #3E20A1 #522AD4 #7B5DDF

Accessibility & contrast

On white

10.90
#3E20A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E20A1
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E20A1#FFFFFF#000000##FFFFFF
##3E20A11.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A5
Deuteranopia (green-blind)
#00389F
Tritanopia (blue-blind)
#004761
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3e20a1;
/* rgb */ color: rgb(62, 32, 161);
/* oklch */ color: oklch(38.1% 0.190 283.4);
Tailwind
colors: {
  custom: {
    50: '#8060be',
    500: '#3e20a1',
    950: '#000000',
  },
}
SCSS
$custom: #3e20a1;
$custom-light: #8060be;
$custom-dark: #000000;
JSON
{
  "hex": "#3e20a1",
  "rgb": {
    "r": 62,
    "g": 32,
    "b": 161
  },
  "hsl": {
    "h": 253.953,
    "s": 66.839,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38063,
    "c": 0.18981,
    "h": 283.4
  },
  "luminance": 0.0463
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3E20A1

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

Preview Lab → · Contrast checker → · Palette generator →

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