#3E2087#3E2087

#3E2087 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.159 H 288.9°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#3E2087
RGBrgb(62, 32, 135)
HSLhsl(257, 62%, 33%)
HSVhsv(257, 76%, 53%)
CMYKcmyk(54.1%, 76.3%, 0%, 47.1%)
CIE-LABlab(23.02, 40.14, -52.33)
CIE-LCHlch(23.02, 65.95, 307.49°)
OKLaboklab(35.43% 0.0514 -0.1504)
OKLCHoklch(35.43% 0.159 288.9)
XYZxyz(6.8750, 3.8061, 23.2894)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2087 #698720
analogous
#203587 #3E2087 #722087
triadic
#3E2087 #873E20 #20873E
tetradic
#3E2087 #872035 #698720 #208772
square
#3E2087 #872035 #698720 #208772
split-complementary
#3E2087 #877220 #358720
monochromatic
#110924 #271456 #3E2087 #552CB8 #744DD5

Accessibility & contrast

On white

11.92
#3E2087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E2087
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2087#FFFFFF#000000##FFFFFF
##3E20871.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#223C52
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3e2087;
/* rgb */ color: rgb(62, 32, 135);
/* oklch */ color: oklch(35.4% 0.159 288.9);
Tailwind
colors: {
  custom: {
    50: '#7c5fab',
    500: '#3e2087',
    950: '#000000',
  },
}
SCSS
$custom: #3e2087;
$custom-light: #7c5fab;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2087",
  "rgb": {
    "r": 62,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 257.476,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35428,
    "c": 0.15897,
    "h": 288.9
  },
  "luminance": 0.03806
}

Semantic roles & 50–950 ramp

primary
#3E2087
secondary
#98B84B
accent
#E543B6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E2087

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

Preview Lab → · Contrast checker → · Palette generator →

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