#3E1F96#3E1F96

#3E1F96 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.178 H 285.6°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#3E1F96
RGBrgb(62, 31, 150)
HSLhsl(256, 66%, 35%)
HSVhsv(256, 79%, 59%)
CMYKcmyk(58.7%, 79.3%, 0%, 41.2%)
CIE-LABlab(24.34, 45.06, -59.48)
CIE-LCHlch(24.34, 74.62, 307.15°)
OKLaboklab(36.81% 0.0479 -0.1713)
OKLCHoklch(36.81% 0.178 285.6)
XYZxyz(7.9799, 4.2056, 29.2395)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F96 #77961F
analogous
#1F3C96 #3E1F96 #791F96
triadic
#3E1F96 #963E1F #1F963E
tetradic
#3E1F96 #961F3C #77961F #1F9679
square
#3E1F96 #961F3C #77961F #1F9679
split-complementary
#3E1F96 #96791F #3C961F
monochromatic
#140A31 #291563 #3E1F96 #5329C9 #7754DC

Accessibility & contrast

On white

11.41
#3E1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3E1F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F96
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F96#FFFFFF#000000##FFFFFF
##3E1F961.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003694
Tritanopia (blue-blind)
#0F425A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e1f96;
/* rgb */ color: rgb(62, 31, 150);
/* oklch */ color: oklch(36.8% 0.178 285.6);
Tailwind
colors: {
  custom: {
    50: '#7e5fb6',
    500: '#3e1f96',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f96;
$custom-light: #7e5fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f96",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 255.63,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36806,
    "c": 0.17789,
    "h": 285.6
  },
  "luminance": 0.04206
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3E1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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