#3E1F80#3E1F80

#3E1F80 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.152 H 290.9°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#3E1F80
RGBrgb(62, 31, 128)
HSLhsl(259, 61%, 31%)
HSVhsv(259, 76%, 50%)
CMYKcmyk(51.6%, 75.8%, 0%, 49.8%)
CIE-LABlab(22.17, 38.60, -49.32)
CIE-LCHlch(22.17, 62.63, 308.04°)
OKLaboklab(34.62% 0.0541 -0.1416)
OKLCHoklch(34.62% 0.152 290.9)
XYZxyz(6.3718, 3.5624, 20.7698)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F80 #61801F
analogous
#1F3080 #3E1F80 #6E1F80
triadic
#3E1F80 #803E1F #1F803E
tetradic
#3E1F80 #801F30 #61801F #1F806E
square
#3E1F80 #801F30 #61801F #1F806E
split-complementary
#3E1F80 #806E1F #30801F
monochromatic
#0E071D #26134F #3E1F80 #562BB1 #7447D2

Accessibility & contrast

On white

12.26
#3E1F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3E1F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F80
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F80#FFFFFF#000000##FFFFFF
##3E1F801.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003783
Deuteranopia (green-blind)
#00337E
Tritanopia (blue-blind)
#28394E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3e1f80;
/* rgb */ color: rgb(62, 31, 128);
/* oklch */ color: oklch(34.6% 0.152 290.9);
Tailwind
colors: {
  custom: {
    50: '#7b5ea6',
    500: '#3e1f80',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f80;
$custom-light: #7b5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f80",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 259.175,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34624,
    "c": 0.15158,
    "h": 290.9
  },
  "luminance": 0.03563
}

Semantic roles & 50–950 ramp

primary
#3E1F80
secondary
#91B348
accent
#E444B1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1F80

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

Preview Lab → · Contrast checker → · Palette generator →

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