#3E2286#3E2286

#3E2286 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.155 H 288.7°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#3E2286
RGBrgb(62, 34, 134)
HSLhsl(257, 60%, 33%)
HSVhsv(257, 75%, 53%)
CMYKcmyk(53.7%, 74.6%, 0%, 47.5%)
CIE-LABlab(23.30, 38.78, -51.24)
CIE-LCHlch(23.30, 64.26, 307.12°)
OKLaboklab(35.6% 0.0499 -0.1472)
OKLCHoklch(35.6% 0.155 288.7)
XYZxyz(6.8605, 3.8891, 22.9388)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2286 #6A8622
analogous
#223886 #3E2286 #702286
triadic
#3E2286 #863E22 #22863E
tetradic
#3E2286 #862238 #6A8622 #228670
square
#3E2286 #862238 #6A8622 #228670
split-complementary
#3E2286 #867022 #388622
monochromatic
#110924 #271655 #3E2286 #552EB7 #7450D3

Accessibility & contrast

On white

11.81
#3E2286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3E2286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2286
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2286#FFFFFF#000000##FFFFFF
##3E22861.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A89
Deuteranopia (green-blind)
#003584
Tritanopia (blue-blind)
#233D52
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3e2286;
/* rgb */ color: rgb(62, 34, 134);
/* oklch */ color: oklch(35.6% 0.155 288.7);
Tailwind
colors: {
  custom: {
    50: '#7b60aa',
    500: '#3e2286',
    950: '#000000',
  },
}
SCSS
$custom: #3e2286;
$custom-light: #7b60aa;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2286",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 256.8,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35598,
    "c": 0.15548,
    "h": 288.7
  },
  "luminance": 0.03889
}

Semantic roles & 50–950 ramp

primary
#3E2286
secondary
#99B64E
accent
#E345B7
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E2286

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

Preview Lab → · Contrast checker → · Palette generator →

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