#3E2F84#3E2F84

#3E2F84 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.4% C 0.136 H 285.9°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#3E2F84
RGBrgb(62, 47, 132)
HSLhsl(251, 47%, 35%)
HSVhsv(251, 64%, 52%)
CMYKcmyk(53%, 64.4%, 0%, 48.2%)
CIE-LABlab(25.93, 30.50, -45.70)
CIE-LCHlch(25.93, 54.95, 303.72°)
OKLaboklab(37.43% 0.0372 -0.131)
OKLCHoklch(37.43% 0.136 285.9)
XYZxyz(7.1667, 4.7227, 22.3593)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2F84 #75842F
analogous
#2F4B84 #3E2F84 #682F84
triadic
#3E2F84 #843E2F #2F843E
tetradic
#3E2F84 #842F4B #75842F #2F8468
square
#3E2F84 #842F4B #75842F #2F8468
split-complementary
#3E2F84 #84682F #4B842F
monochromatic
#140F2A #291F57 #3E2F84 #533FB1 #7765C8

Accessibility & contrast

On white

10.80
#3E2F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3E2F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2F84
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2F84#FFFFFF#000000##FFFFFF
##3E2F841.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004087
Deuteranopia (green-blind)
#003B82
Tritanopia (blue-blind)
#234355
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3e2f84;
/* rgb */ color: rgb(62, 47, 132);
/* oklch */ color: oklch(37.4% 0.136 285.9);
Tailwind
colors: {
  custom: {
    50: '#7a68a8',
    500: '#3e2f84',
    950: '#000000',
  },
}
SCSS
$custom: #3e2f84;
$custom-light: #7a68a8;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2f84",
  "rgb": {
    "r": 62,
    "g": 47,
    "b": 132
  },
  "hsl": {
    "h": 250.588,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.37433,
    "c": 0.13619,
    "h": 285.9
  },
  "luminance": 0.04723
}

Semantic roles & 50–950 ramp

primary
#3E2F84
secondary
#A1AF60
accent
#D751BF
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3E2F84

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

Preview Lab → · Contrast checker → · Palette generator →

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