#3E2D82#3E2D82

#3E2D82 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 36.9% C 0.136 H 286.9°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#3E2D82
RGBrgb(62, 45, 130)
HSLhsl(252, 49%, 34%)
HSVhsv(252, 65%, 51%)
CMYKcmyk(52.3%, 65.4%, 0%, 49%)
CIE-LABlab(25.30, 31.11, -45.48)
CIE-LCHlch(25.30, 55.10, 304.37°)
OKLaboklab(36.92% 0.0396 -0.1303)
OKLCHoklch(36.92% 0.136 286.9)
XYZxyz(6.9531, 4.5123, 21.6194)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2D82 #71822D
analogous
#2D4782 #3E2D82 #692D82
triadic
#3E2D82 #823E2D #2D823E
tetradic
#3E2D82 #822D47 #71822D #2D8269
square
#3E2D82 #822D47 #71822D #2D8269
split-complementary
#3E2D82 #82692D #47822D
monochromatic
#130E27 #281D55 #3E2D82 #543DAF #7661C8

Accessibility & contrast

On white

11.04
#3E2D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3E2D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2D82
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2D82#FFFFFF#000000##FFFFFF
##3E2D821.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E85
Deuteranopia (green-blind)
#003A80
Tritanopia (blue-blind)
#254153
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3e2d82;
/* rgb */ color: rgb(62, 45, 130);
/* oklch */ color: oklch(36.9% 0.136 286.9);
Tailwind
colors: {
  custom: {
    50: '#7a67a7',
    500: '#3e2d82',
    950: '#000000',
  },
}
SCSS
$custom: #3e2d82;
$custom-light: #7a67a7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2d82",
  "rgb": {
    "r": 62,
    "g": 45,
    "b": 130
  },
  "hsl": {
    "h": 252,
    "s": 48.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36921,
    "c": 0.13622,
    "h": 286.9
  },
  "luminance": 0.04513
}

Semantic roles & 50–950 ramp

primary
#3E2D82
secondary
#9EAF5C
accent
#D850BD
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #3E2D82

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

Preview Lab → · Contrast checker → · Palette generator →

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