#3E1F8E#3E1F8E

#3E1F8E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.168 H 287.4°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#3E1F8E
RGBrgb(62, 31, 142)
HSLhsl(257, 64%, 34%)
HSVhsv(257, 78%, 56%)
CMYKcmyk(56.3%, 78.2%, 0%, 44.3%)
CIE-LABlab(23.53, 42.71, -55.87)
CIE-LCHlch(23.53, 70.33, 307.40°)
OKLaboklab(35.99% 0.0503 -0.1608)
OKLCHoklch(35.99% 0.168 287.4)
XYZxyz(7.3576, 3.9567, 25.9620)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F8E #6F8E1F
analogous
#1F388E #3E1F8E #761F8E
triadic
#3E1F8E #8E3E1F #1F8E3E
tetradic
#3E1F8E #8E1F38 #6F8E1F #1F8E76
square
#3E1F8E #8E1F38 #6F8E1F #1F8E76
split-complementary
#3E1F8E #8E761F #388E1F
monochromatic
#12092A #28145C #3E1F8E #542AC0 #754FD9

Accessibility & contrast

On white

11.72
#3E1F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3E1F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F8E
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F8E#FFFFFF#000000##FFFFFF
##3E1F8E1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#1B3E55
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3e1f8e;
/* rgb */ color: rgb(62, 31, 142);
/* oklch */ color: oklch(36.0% 0.168 287.4);
Tailwind
colors: {
  custom: {
    50: '#7d5fb0',
    500: '#3e1f8e',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f8e;
$custom-light: #7d5fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f8e",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 256.757,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35994,
    "c": 0.16845,
    "h": 287.4
  },
  "luminance": 0.03957
}

Semantic roles & 50–950 ramp

primary
#3E1F8E
secondary
#9DBB4D
accent
#E741B9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E1F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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