#3E2886#3E2886

#3E2886 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.5% C 0.148 H 287.4°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#3E2886
RGBrgb(62, 40, 134)
HSLhsl(254, 54%, 34%)
HSVhsv(254, 70%, 53%)
CMYKcmyk(53.7%, 70.1%, 0%, 47.5%)
CIE-LABlab(24.52, 35.39, -49.25)
CIE-LCHlch(24.52, 60.65, 305.70°)
OKLaboklab(36.47% 0.0443 -0.1414)
OKLCHoklch(36.47% 0.148 287.4)
XYZxyz(7.0472, 4.2626, 23.0011)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2886 #708628
analogous
#284186 #3E2886 #6D2886
triadic
#3E2886 #863E28 #28863E
tetradic
#3E2886 #862841 #708628 #28866D
square
#3E2886 #862841 #708628 #28866D
split-complementary
#3E2886 #866D28 #418628
monochromatic
#120C28 #281A57 #3E2886 #5436B5 #765BCE

Accessibility & contrast

On white

11.34
#3E2886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3E2886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2886
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2886#FFFFFF#000000##FFFFFF
##3E28861.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C89
Deuteranopia (green-blind)
#003884
Tritanopia (blue-blind)
#224053
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e2886;
/* rgb */ color: rgb(62, 40, 134);
/* oklch */ color: oklch(36.5% 0.148 287.4);
Tailwind
colors: {
  custom: {
    50: '#7b64aa',
    500: '#3e2886',
    950: '#000000',
  },
}
SCSS
$custom: #3e2886;
$custom-light: #7b64aa;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2886",
  "rgb": {
    "r": 62,
    "g": 40,
    "b": 134
  },
  "hsl": {
    "h": 254.043,
    "s": 54.023,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36467,
    "c": 0.14819,
    "h": 287.4
  },
  "luminance": 0.04263
}

Semantic roles & 50–950 ramp

primary
#3E2886
secondary
#9DB357
accent
#DD4ABB
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3E2886

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

Preview Lab → · Contrast checker → · Palette generator →

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