#3E1F79#3E1F79

#3E1F79 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.143 H 292.9°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#3E1F79
RGBrgb(62, 31, 121)
HSLhsl(261, 59%, 30%)
HSVhsv(261, 74%, 47%)
CMYKcmyk(48.8%, 74.4%, 0%, 52.5%)
CIE-LABlab(21.52, 36.54, -45.93)
CIE-LCHlch(21.52, 58.69, 308.50°)
OKLaboklab(33.97% 0.0557 -0.1316)
OKLCHoklch(33.97% 0.143 292.9)
XYZxyz(5.9268, 3.3844, 18.4264)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F79 #5A791F
analogous
#1F2D79 #3E1F79 #6B1F79
triadic
#3E1F79 #793E1F #1F793E
tetradic
#3E1F79 #791F2D #5A791F #1F796B
square
#3E1F79 #791F2D #5A791F #1F796B
split-complementary
#3E1F79 #796B1F #2D791F
monochromatic
#0C0618 #251348 #3E1F79 #572BAA #7443CF

Accessibility & contrast

On white

12.52
#3E1F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3E1F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F79
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F79#FFFFFF#000000##FFFFFF
##3E1F791.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#2C364A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3e1f79;
/* rgb */ color: rgb(62, 31, 121);
/* oklch */ color: oklch(34.0% 0.143 292.9);
Tailwind
colors: {
  custom: {
    50: '#7a5ea1',
    500: '#3e1f79',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f79;
$custom-light: #7a5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f79",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 260.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33967,
    "c": 0.14296,
    "h": 292.9
  },
  "luminance": 0.03385
}

Semantic roles & 50–950 ramp

primary
#3E1F79
secondary
#8AAC47
accent
#E245AC
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1F79

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

Preview Lab → · Contrast checker → · Palette generator →

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