#3E1FA1#3E1FA1

#3E1FA1 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.191 H 283.5°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#3E1FA1
RGBrgb(62, 31, 161)
HSLhsl(254, 68%, 38%)
HSVhsv(254, 81%, 63%)
CMYKcmyk(61.5%, 80.7%, 0%, 36.9%)
CIE-LABlab(25.49, 48.26, -64.31)
CIE-LCHlch(25.49, 80.41, 306.89°)
OKLaboklab(37.95% 0.0444 -0.1854)
OKLCHoklch(37.95% 0.191 283.5)
XYZxyz(8.9076, 4.5767, 34.1253)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1FA1 #82A11F
analogous
#1F41A1 #3E1FA1 #7F1FA1
triadic
#3E1FA1 #A13E1F #1FA13E
tetradic
#3E1FA1 #A11F41 #82A11F #1FA17F
square
#3E1FA1 #A11F41 #82A11F #1FA17F
split-complementary
#3E1FA1 #A17F1F #41A11F
monochromatic
#160B3A #2A156E #3E1FA1 #5229D4 #7B5BDF

Accessibility & contrast

On white

10.96
#3E1FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3E1FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1FA1
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1FA1#FFFFFF#000000##FFFFFF
##3E1FA11.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#00389F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3e1fa1;
/* rgb */ color: rgb(62, 31, 161);
/* oklch */ color: oklch(38.0% 0.191 283.5);
Tailwind
colors: {
  custom: {
    50: '#8060be',
    500: '#3e1fa1',
    950: '#000000',
  },
}
SCSS
$custom: #3e1fa1;
$custom-light: #8060be;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1fa1",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 254.308,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37952,
    "c": 0.19068,
    "h": 283.5
  },
  "luminance": 0.04577
}

Semantic roles & 50–950 ramp

primary
#3E1FA1
secondary
#AAC458
accent
#EB3DC1
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #3E1FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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