#3E2082#3E2082

#3E2082 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.153 H 290.2°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#3E2082
RGBrgb(62, 32, 130)
HSLhsl(258, 60%, 32%)
HSVhsv(258, 75%, 51%)
CMYKcmyk(52.3%, 75.4%, 0%, 49%)
CIE-LABlab(22.54, 38.66, -49.97)
CIE-LCHlch(22.54, 63.18, 307.73°)
OKLaboklab(34.95% 0.0527 -0.1435)
OKLCHoklch(34.95% 0.153 290.2)
XYZxyz(6.5312, 3.6686, 21.4787)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2082 #648220
analogous
#203382 #3E2082 #6F2082
triadic
#3E2082 #823E20 #20823E
tetradic
#3E2082 #822033 #648220 #20826F
square
#3E2082 #822033 #648220 #20826F
split-complementary
#3E2082 #826F20 #338220
monochromatic
#0F0820 #271451 #3E2082 #552CB3 #744AD2

Accessibility & contrast

On white

12.11
#3E2082 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3E2082 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2082
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2082#FFFFFF#000000##FFFFFF
##3E20821.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003480
Tritanopia (blue-blind)
#263A4F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e2082;
/* rgb */ color: rgb(62, 32, 130);
/* oklch */ color: oklch(34.9% 0.153 290.2);
Tailwind
colors: {
  custom: {
    50: '#7b5fa7',
    500: '#3e2082',
    950: '#000000',
  },
}
SCSS
$custom: #3e2082;
$custom-light: #7b5fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2082",
  "rgb": {
    "r": 62,
    "g": 32,
    "b": 130
  },
  "hsl": {
    "h": 258.367,
    "s": 60.494,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34947,
    "c": 0.15286,
    "h": 290.2
  },
  "luminance": 0.03669
}

Semantic roles & 50–950 ramp

primary
#3E2082
secondary
#94B549
accent
#E444B3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E2082

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

Preview Lab → · Contrast checker → · Palette generator →

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