#3E1F95#3E1F95

#3E1F95 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.177 H 285.8°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#3E1F95
RGBrgb(62, 31, 149)
HSLhsl(256, 66%, 35%)
HSVhsv(256, 79%, 58%)
CMYKcmyk(58.4%, 79.2%, 0%, 41.6%)
CIE-LABlab(24.24, 44.77, -59.03)
CIE-LCHlch(24.24, 74.09, 307.17°)
OKLaboklab(36.7% 0.0482 -0.17)
OKLCHoklch(36.7% 0.177 285.8)
XYZxyz(7.8998, 4.1736, 28.8173)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F95 #76951F
analogous
#1F3B95 #3E1F95 #791F95
triadic
#3E1F95 #953E1F #1F953E
tetradic
#3E1F95 #951F3B #76951F #1F9579
square
#3E1F95 #951F3B #76951F #1F9579
split-complementary
#3E1F95 #95791F #3B951F
monochromatic
#140A30 #291462 #3E1F95 #532AC8 #7753DB

Accessibility & contrast

On white

11.45
#3E1F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3E1F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F95
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F95#FFFFFF#000000##FFFFFF
##3E1F951.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D98
Deuteranopia (green-blind)
#003693
Tritanopia (blue-blind)
#114159
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e1f95;
/* rgb */ color: rgb(62, 31, 149);
/* oklch */ color: oklch(36.7% 0.177 285.8);
Tailwind
colors: {
  custom: {
    50: '#7e5fb5',
    500: '#3e1f95',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f95;
$custom-light: #7e5fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f95",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 255.763,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36703,
    "c": 0.17673,
    "h": 285.8
  },
  "luminance": 0.04174
}

Semantic roles & 50–950 ramp

primary
#3E1F95
secondary
#A2BF51
accent
#E93FBC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E1F95

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

Preview Lab → · Contrast checker → · Palette generator →

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