#3E2A82#3E2A82

#3E2A82 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.4% C 0.140 H 287.8°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#3E2A82
RGBrgb(62, 42, 130)
HSLhsl(254, 51%, 34%)
HSVhsv(254, 68%, 51%)
CMYKcmyk(52.3%, 67.7%, 0%, 49%)
CIE-LABlab(24.61, 32.95, -46.59)
CIE-LCHlch(24.61, 57.06, 305.27°)
OKLaboklab(36.43% 0.0428 -0.1336)
OKLCHoklch(36.43% 0.14 287.8)
XYZxyz(6.8427, 4.2915, 21.5825)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2A82 #6E822A
analogous
#2A4282 #3E2A82 #6A2A82
triadic
#3E2A82 #823E2A #2A823E
tetradic
#3E2A82 #822A42 #6E822A #2A826A
square
#3E2A82 #822A42 #6E822A #2A826A
split-complementary
#3E2A82 #826A2A #42822A
monochromatic
#120C25 #281B54 #3E2A82 #5439B0 #755CCA

Accessibility & contrast

On white

11.30
#3E2A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3E2A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2A82
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2A82#FFFFFF#000000##FFFFFF
##3E2A821.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C85
Deuteranopia (green-blind)
#003880
Tritanopia (blue-blind)
#254052
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e2a82;
/* rgb */ color: rgb(62, 42, 130);
/* oklch */ color: oklch(36.4% 0.140 287.8);
Tailwind
colors: {
  custom: {
    50: '#7a65a7',
    500: '#3e2a82',
    950: '#000000',
  },
}
SCSS
$custom: #3e2a82;
$custom-light: #7a65a7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2a82",
  "rgb": {
    "r": 62,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 253.636,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36425,
    "c": 0.14032,
    "h": 287.8
  },
  "luminance": 0.04292
}

Semantic roles & 50–950 ramp

primary
#3E2A82
secondary
#9CB058
accent
#DB4DBA
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F

Preview Lab

Preview with #3E2A82

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

Preview Lab → · Contrast checker → · Palette generator →

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