#3E2686#3E2686

#3E2686 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.151 H 287.9°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#3E2686
RGBrgb(62, 38, 134)
HSLhsl(255, 56%, 34%)
HSVhsv(255, 72%, 53%)
CMYKcmyk(53.7%, 71.6%, 0%, 47.5%)
CIE-LABlab(24.10, 36.55, -49.94)
CIE-LCHlch(24.10, 61.88, 306.20°)
OKLaboklab(36.17% 0.0462 -0.1434)
OKLCHoklch(36.17% 0.151 287.9)
XYZxyz(6.9815, 4.1313, 22.9792)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2686 #6E8626
analogous
#263E86 #3E2686 #6E2686
triadic
#3E2686 #863E26 #26863E
tetradic
#3E2686 #86263E #6E8626 #26866E
square
#3E2686 #86263E #6E8626 #26866E
split-complementary
#3E2686 #866E26 #3E8626
monochromatic
#120B27 #281856 #3E2686 #5434B6 #7557CF

Accessibility & contrast

On white

11.50
#3E2686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3E2686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2686
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2686#FFFFFF#000000##FFFFFF
##3E26861.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003784
Tritanopia (blue-blind)
#223F53
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3e2686;
/* rgb */ color: rgb(62, 38, 134);
/* oklch */ color: oklch(36.2% 0.151 287.9);
Tailwind
colors: {
  custom: {
    50: '#7b62aa',
    500: '#3e2686',
    950: '#000000',
  },
}
SCSS
$custom: #3e2686;
$custom-light: #7b62aa;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2686",
  "rgb": {
    "r": 62,
    "g": 38,
    "b": 134
  },
  "hsl": {
    "h": 255,
    "s": 55.814,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36166,
    "c": 0.15069,
    "h": 287.9
  },
  "luminance": 0.04132
}

Semantic roles & 50–950 ramp

primary
#3E2686
secondary
#9CB454
accent
#DF49BA
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E2686

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

Preview Lab → · Contrast checker → · Palette generator →

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