#3E2182#3E2182

#3E2182 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.152 H 290.0°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#3E2182
RGBrgb(62, 33, 130)
HSLhsl(258, 60%, 32%)
HSVhsv(258, 75%, 51%)
CMYKcmyk(52.3%, 74.6%, 0%, 49%)
CIE-LABlab(22.73, 38.12, -49.66)
CIE-LCHlch(22.73, 62.60, 307.51°)
OKLaboklab(35.08% 0.0518 -0.1426)
OKLCHoklch(35.08% 0.152 290)
XYZxyz(6.5586, 3.7233, 21.4879)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2182 #658221
analogous
#213582 #3E2182 #6F2182
triadic
#3E2182 #823E21 #21823E
tetradic
#3E2182 #822135 #658221 #21826F
square
#3E2182 #822135 #658221 #21826F
split-complementary
#3E2182 #826F21 #358221
monochromatic
#0F0820 #271551 #3E2182 #552DB3 #744CD2

Accessibility & contrast

On white

12.04
#3E2182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3E2182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2182
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2182#FFFFFF#000000##FFFFFF
##3E21821.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e2182;
/* rgb */ color: rgb(62, 33, 130);
/* oklch */ color: oklch(35.1% 0.152 290.0);
Tailwind
colors: {
  custom: {
    50: '#7b5fa7',
    500: '#3e2182',
    950: '#000000',
  },
}
SCSS
$custom: #3e2182;
$custom-light: #7b5fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2182",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 257.938,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35082,
    "c": 0.15169,
    "h": 290
  },
  "luminance": 0.03724
}

Semantic roles & 50–950 ramp

primary
#3E2182
secondary
#95B44A
accent
#E345B4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E2182

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

Preview Lab → · Contrast checker → · Palette generator →

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