#3E1F8F#3E1F8F

#3E1F8F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.170 H 287.1°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#3E1F8F
RGBrgb(62, 31, 143)
HSLhsl(257, 64%, 34%)
HSVhsv(257, 78%, 56%)
CMYKcmyk(56.6%, 78.3%, 0%, 43.9%)
CIE-LABlab(23.63, 43.01, -56.32)
CIE-LCHlch(23.63, 70.87, 307.36°)
OKLaboklab(36.09% 0.05 -0.1621)
OKLCHoklch(36.09% 0.17 287.1)
XYZxyz(7.4330, 3.9869, 26.3592)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F8F #708F1F
analogous
#1F388F #3E1F8F #761F8F
triadic
#3E1F8F #8F3E1F #1F8F3E
tetradic
#3E1F8F #8F1F38 #708F1F #1F8F76
square
#3E1F8F #8F1F38 #708F1F #1F8F76
split-complementary
#3E1F8F #8F761F #388F1F
monochromatic
#12092A #28145D #3E1F8F #542AC1 #764FD9

Accessibility & contrast

On white

11.68
#3E1F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3E1F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F8F
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F8F#FFFFFF#000000##FFFFFF
##3E1F8F1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#1A3F56
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3e1f8f;
/* rgb */ color: rgb(62, 31, 143);
/* oklch */ color: oklch(36.1% 0.170 287.1);
Tailwind
colors: {
  custom: {
    50: '#7d5fb1',
    500: '#3e1f8f',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f8f;
$custom-light: #7d5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f8f",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 256.607,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36094,
    "c": 0.16964,
    "h": 287.1
  },
  "luminance": 0.03987
}

Semantic roles & 50–950 ramp

primary
#3E1F8F
secondary
#9DBC4E
accent
#E740B9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E1F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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