#3E1F97#3E1F97

#3E1F97 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.179 H 285.4°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#3E1F97
RGBrgb(62, 31, 151)
HSLhsl(256, 66%, 36%)
HSVhsv(256, 79%, 59%)
CMYKcmyk(58.9%, 79.5%, 0%, 40.8%)
CIE-LABlab(24.44, 45.35, -59.93)
CIE-LCHlch(24.44, 75.15, 307.12°)
OKLaboklab(36.91% 0.0476 -0.1726)
OKLCHoklch(36.91% 0.179 285.4)
XYZxyz(8.0608, 4.2380, 29.6654)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F97 #78971F
analogous
#1F3C97 #3E1F97 #7A1F97
triadic
#3E1F97 #973E1F #1F973E
tetradic
#3E1F97 #971F3C #78971F #1F977A
square
#3E1F97 #971F3C #78971F #1F977A
split-complementary
#3E1F97 #977A1F #3C971F
monochromatic
#140A31 #291564 #3E1F97 #5329CA #7754DC

Accessibility & contrast

On white

11.37
#3E1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3E1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F97
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F97#FFFFFF#000000##FFFFFF
##3E1F971.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#0D425B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e1f97;
/* rgb */ color: rgb(62, 31, 151);
/* oklch */ color: oklch(36.9% 0.179 285.4);
Tailwind
colors: {
  custom: {
    50: '#7f5fb7',
    500: '#3e1f97',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f97;
$custom-light: #7f5fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f97",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 255.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36908,
    "c": 0.17906,
    "h": 285.4
  },
  "luminance": 0.04238
}

Semantic roles & 50–950 ramp

primary
#3E1F97
secondary
#A3BF52
accent
#E93FBD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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