#3E2080#3E2080

#3E2080 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.150 H 290.7°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#3E2080
RGBrgb(62, 32, 128)
HSLhsl(259, 60%, 31%)
HSVhsv(259, 75%, 50%)
CMYKcmyk(51.6%, 75%, 0%, 49.8%)
CIE-LABlab(22.36, 38.07, -49.01)
CIE-LCHlch(22.36, 62.06, 307.83°)
OKLaboklab(34.76% 0.0532 -0.1407)
OKLCHoklch(34.76% 0.15 290.7)
XYZxyz(6.3983, 3.6154, 20.7786)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2080 #628020
analogous
#203280 #3E2080 #6E2080
triadic
#3E2080 #803E20 #20803E
tetradic
#3E2080 #802032 #628020 #20806E
square
#3E2080 #802032 #628020 #20806E
split-complementary
#3E2080 #806E20 #328020
monochromatic
#0F081E #26144F #3E2080 #562CB1 #7449D1

Accessibility & contrast

On white

12.19
#3E2080 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3E2080 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2080
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2080#FFFFFF#000000##FFFFFF
##3E20801.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003783
Deuteranopia (green-blind)
#00337E
Tritanopia (blue-blind)
#28394E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3e2080;
/* rgb */ color: rgb(62, 32, 128);
/* oklch */ color: oklch(34.8% 0.150 290.7);
Tailwind
colors: {
  custom: {
    50: '#7b5ea6',
    500: '#3e2080',
    950: '#000000',
  },
}
SCSS
$custom: #3e2080;
$custom-light: #7b5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2080",
  "rgb": {
    "r": 62,
    "g": 32,
    "b": 128
  },
  "hsl": {
    "h": 258.75,
    "s": 60,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34757,
    "c": 0.15041,
    "h": 290.7
  },
  "luminance": 0.03616
}

Semantic roles & 50–950 ramp

primary
#3E2080
secondary
#92B349
accent
#E345B2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E2080

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

Preview Lab → · Contrast checker → · Palette generator →

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