#3E1F87#3E1F87

#3E1F87 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.160 H 289.0°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#3E1F87
RGBrgb(62, 31, 135)
HSLhsl(258, 63%, 33%)
HSVhsv(258, 77%, 53%)
CMYKcmyk(54.1%, 77%, 0%, 47.1%)
CIE-LABlab(22.84, 40.66, -52.63)
CIE-LCHlch(22.84, 66.51, 307.68°)
OKLaboklab(35.3% 0.0522 -0.1513)
OKLCHoklch(35.3% 0.16 289)
XYZxyz(6.8485, 3.7531, 23.2805)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F87 #68871F
analogous
#1F3487 #3E1F87 #721F87
triadic
#3E1F87 #873E1F #1F873E
tetradic
#3E1F87 #871F34 #68871F #1F8772
square
#3E1F87 #871F34 #68871F #1F8772
split-complementary
#3E1F87 #87721F #34871F
monochromatic
#100823 #271455 #3E1F87 #552AB9 #744BD6

Accessibility & contrast

On white

12.00
#3E1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3E1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F87
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F87#FFFFFF#000000##FFFFFF
##3E1F871.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e1f87;
/* rgb */ color: rgb(62, 31, 135);
/* oklch */ color: oklch(35.3% 0.160 289.0);
Tailwind
colors: {
  custom: {
    50: '#7c5eab',
    500: '#3e1f87',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f87;
$custom-light: #7c5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f87",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 257.885,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.353,
    "c": 0.16006,
    "h": 289
  },
  "luminance": 0.03753
}

Semantic roles & 50–950 ramp

primary
#3E1F87
secondary
#97B84A
accent
#E642B5
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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