#3E1F8A#3E1F8A

#3E1F8A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.164 H 288.3°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#3E1F8A
RGBrgb(62, 31, 138)
HSLhsl(257, 63%, 33%)
HSVhsv(257, 78%, 54%)
CMYKcmyk(55.1%, 77.5%, 0%, 45.9%)
CIE-LABlab(23.13, 41.54, -54.03)
CIE-LCHlch(23.13, 68.15, 307.56°)
OKLaboklab(35.6% 0.0514 -0.1554)
OKLCHoklch(35.6% 0.164 288.3)
XYZxyz(7.0627, 3.8387, 24.4086)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F8A #6B8A1F
analogous
#1F358A #3E1F8A #731F8A
triadic
#3E1F8A #8A3E1F #1F8A3E
tetradic
#3E1F8A #8A1F35 #6B8A1F #1F8A73
square
#3E1F8A #8A1F35 #6B8A1F #1F8A73
split-complementary
#3E1F8A #8A731F #358A1F
monochromatic
#110926 #281458 #3E1F8A #542ABC #754CD7

Accessibility & contrast

On white

11.88
#3E1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3E1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F8A
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F8A#FFFFFF#000000##FFFFFF
##3E1F8A1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#1F3D53
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3e1f8a;
/* rgb */ color: rgb(62, 31, 138);
/* oklch */ color: oklch(35.6% 0.164 288.3);
Tailwind
colors: {
  custom: {
    50: '#7c5ead',
    500: '#3e1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f8a;
$custom-light: #7c5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f8a",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 257.383,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35595,
    "c": 0.16367,
    "h": 288.3
  },
  "luminance": 0.03839
}

Semantic roles & 50–950 ramp

primary
#3E1F8A
secondary
#9ABA4B
accent
#E641B7
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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