#3E2986#3E2986

#3E2986 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.6% C 0.147 H 287.1°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#3E2986
RGBrgb(62, 41, 134)
HSLhsl(254, 53%, 34%)
HSVhsv(254, 69%, 53%)
CMYKcmyk(53.7%, 69.4%, 0%, 47.5%)
CIE-LABlab(24.74, 34.80, -48.90)
CIE-LCHlch(24.74, 60.02, 305.44°)
OKLaboklab(36.62% 0.0433 -0.1404)
OKLCHoklch(36.62% 0.147 287.1)
XYZxyz(7.0813, 4.3309, 23.0124)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2986 #718629
analogous
#294386 #3E2986 #6D2986
triadic
#3E2986 #863E29 #29863E
tetradic
#3E2986 #862943 #718629 #29866D
square
#3E2986 #862943 #718629 #29866D
split-complementary
#3E2986 #866D29 #438629
monochromatic
#130C28 #281B57 #3E2986 #5437B5 #765CCD

Accessibility & contrast

On white

11.25
#3E2986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3E2986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2986
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2986#FFFFFF#000000##FFFFFF
##3E29861.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D89
Deuteranopia (green-blind)
#003884
Tritanopia (blue-blind)
#224054
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e2986;
/* rgb */ color: rgb(62, 41, 134);
/* oklch */ color: oklch(36.6% 0.147 287.1);
Tailwind
colors: {
  custom: {
    50: '#7b64aa',
    500: '#3e2986',
    950: '#000000',
  },
}
SCSS
$custom: #3e2986;
$custom-light: #7b64aa;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2986",
  "rgb": {
    "r": 62,
    "g": 41,
    "b": 134
  },
  "hsl": {
    "h": 253.548,
    "s": 53.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36622,
    "c": 0.14691,
    "h": 287.1
  },
  "luminance": 0.04331
}

Semantic roles & 50–950 ramp

primary
#3E2986
secondary
#9EB358
accent
#DD4BBC
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3E2986

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

Preview Lab → · Contrast checker → · Palette generator →

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