#3E2282#3E2282

#3E2282 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.151 H 289.7°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#3E2282
RGBrgb(62, 34, 130)
HSLhsl(258, 59%, 32%)
HSVhsv(258, 74%, 51%)
CMYKcmyk(52.3%, 73.8%, 0%, 49%)
CIE-LABlab(22.93, 37.58, -49.34)
CIE-LCHlch(22.93, 62.02, 307.29°)
OKLaboklab(35.22% 0.0508 -0.1417)
OKLCHoklch(35.22% 0.151 289.7)
XYZxyz(6.5867, 3.7796, 21.4972)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2282 #668222
analogous
#223682 #3E2282 #6E2282
triadic
#3E2282 #823E22 #22823E
tetradic
#3E2282 #822236 #668222 #22826E
square
#3E2282 #822236 #668222 #22826E
split-complementary
#3E2282 #826E22 #368222
monochromatic
#100921 #271551 #3E2282 #552FB3 #744ED1

Accessibility & contrast

On white

11.96
#3E2282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3E2282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2282
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2282#FFFFFF#000000##FFFFFF
##3E22821.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003480
Tritanopia (blue-blind)
#263B4F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3e2282;
/* rgb */ color: rgb(62, 34, 130);
/* oklch */ color: oklch(35.2% 0.151 289.7);
Tailwind
colors: {
  custom: {
    50: '#7b60a7',
    500: '#3e2282',
    950: '#000000',
  },
}
SCSS
$custom: #3e2282;
$custom-light: #7b60a7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2282",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 257.5,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35219,
    "c": 0.15051,
    "h": 289.7
  },
  "luminance": 0.0378
}

Semantic roles & 50–950 ramp

primary
#3E2282
secondary
#96B44C
accent
#E246B4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E2282

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

Preview Lab → · Contrast checker → · Palette generator →

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