#3E1A87#3E1A87

#3E1A87 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.165 H 289.9°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#3E1A87
RGBrgb(62, 26, 135)
HSLhsl(260, 68%, 32%)
HSVhsv(260, 81%, 53%)
CMYKcmyk(54.1%, 80.7%, 0%, 47.1%)
CIE-LABlab(21.99, 43.09, -54.03)
CIE-LCHlch(21.99, 69.11, 308.58°)
OKLaboklab(34.71% 0.0562 -0.1553)
OKLCHoklch(34.71% 0.165 289.9)
XYZxyz(6.7279, 3.5119, 23.2403)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1A87 #63871A
analogous
#1A2C87 #3E1A87 #751A87
triadic
#3E1A87 #873E1A #1A873E
tetradic
#3E1A87 #871A2C #63871A #1A8775
square
#3E1A87 #871A2C #63871A #1A8775
split-complementary
#3E1A87 #87751A #2C871A
monochromatic
#0F0620 #261054 #3E1A87 #5624BA #7441DA

Accessibility & contrast

On white

12.34
#3E1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3E1A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1A87
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1A87#FFFFFF#000000##FFFFFF
##3E1A871.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#223950
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3e1a87;
/* rgb */ color: rgb(62, 26, 135);
/* oklch */ color: oklch(34.7% 0.165 289.9);
Tailwind
colors: {
  custom: {
    50: '#7c5cab',
    500: '#3e1a87',
    950: '#000000',
  },
}
SCSS
$custom: #3e1a87;
$custom-light: #7c5cab;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1a87",
  "rgb": {
    "r": 62,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 259.817,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34705,
    "c": 0.16518,
    "h": 289.9
  },
  "luminance": 0.03512
}

Semantic roles & 50–950 ramp

primary
#3E1A87
secondary
#93BA42
accent
#EB3DB1
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3E1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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