#3E2086#3E2086

#3E2086 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.158 H 289.1°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#3E2086
RGBrgb(62, 32, 134)
HSLhsl(258, 61%, 33%)
HSVhsv(258, 76%, 53%)
CMYKcmyk(53.7%, 76.1%, 0%, 47.5%)
CIE-LABlab(22.92, 39.84, -51.86)
CIE-LCHlch(22.92, 65.40, 307.53°)
OKLaboklab(35.33% 0.0517 -0.1491)
OKLCHoklch(35.33% 0.158 289.1)
XYZxyz(6.8049, 3.7781, 22.9203)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2086 #688620
analogous
#203586 #3E2086 #712086
triadic
#3E2086 #863E20 #20863E
tetradic
#3E2086 #862035 #688620 #208671
square
#3E2086 #862035 #688620 #208671
split-complementary
#3E2086 #867120 #358620
monochromatic
#100823 #271455 #3E2086 #552CB7 #744CD4

Accessibility & contrast

On white

11.96
#3E2086 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3E2086 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2086
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2086#FFFFFF#000000##FFFFFF
##3E20861.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#003484
Tritanopia (blue-blind)
#233C51
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3e2086;
/* rgb */ color: rgb(62, 32, 134);
/* oklch */ color: oklch(35.3% 0.158 289.1);
Tailwind
colors: {
  custom: {
    50: '#7c5faa',
    500: '#3e2086',
    950: '#000000',
  },
}
SCSS
$custom: #3e2086;
$custom-light: #7c5faa;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2086",
  "rgb": {
    "r": 62,
    "g": 32,
    "b": 134
  },
  "hsl": {
    "h": 257.647,
    "s": 61.446,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35331,
    "c": 0.15776,
    "h": 289.1
  },
  "luminance": 0.03778
}

Semantic roles & 50–950 ramp

primary
#3E2086
secondary
#97B74B
accent
#E543B5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E2086

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

Preview Lab → · Contrast checker → · Palette generator →

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