#3E2A87#3E2A87

#3E2A87 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.9% C 0.147 H 286.7°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#3E2A87
RGBrgb(62, 42, 135)
HSLhsl(253, 53%, 35%)
HSVhsv(253, 69%, 53%)
CMYKcmyk(54.1%, 68.9%, 0%, 47.1%)
CIE-LABlab(25.04, 34.52, -49.02)
CIE-LCHlch(25.04, 59.96, 305.15°)
OKLaboklab(36.87% 0.0421 -0.1408)
OKLCHoklch(36.87% 0.147 286.7)
XYZxyz(7.1864, 4.4290, 23.3932)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2A87 #73872A
analogous
#2A4587 #3E2A87 #6C2A87
triadic
#3E2A87 #873E2A #2A873E
tetradic
#3E2A87 #872A45 #73872A #2A876C
square
#3E2A87 #872A45 #73872A #2A876C
split-complementary
#3E2A87 #876C2A #45872A
monochromatic
#130D2A #291B58 #3E2A87 #5339B6 #765ECD

Accessibility & contrast

On white

11.14
#3E2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3E2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2A87
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2A87#FFFFFF#000000##FFFFFF
##3E2A871.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#214155
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e2a87;
/* rgb */ color: rgb(62, 42, 135);
/* oklch */ color: oklch(36.9% 0.147 286.7);
Tailwind
colors: {
  custom: {
    50: '#7b65ab',
    500: '#3e2a87',
    950: '#000000',
  },
}
SCSS
$custom: #3e2a87;
$custom-light: #7b65ab;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2a87",
  "rgb": {
    "r": 62,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 252.903,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36868,
    "c": 0.14694,
    "h": 286.7
  },
  "luminance": 0.04429
}

Semantic roles & 50–950 ramp

primary
#3E2A87
secondary
#A0B35A
accent
#DC4CBD
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3E2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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