#3E1F76#3E1F76

#3E1F76 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.139 H 293.9°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#3E1F76
RGBrgb(62, 31, 118)
HSLhsl(261, 58%, 29%)
HSVhsv(261, 74%, 46%)
CMYKcmyk(47.5%, 73.7%, 0%, 53.7%)
CIE-LABlab(21.25, 35.66, -44.46)
CIE-LCHlch(21.25, 56.99, 308.74°)
OKLaboklab(33.69% 0.0564 -0.1273)
OKLCHoklch(33.69% 0.139 293.9)
XYZxyz(5.7457, 3.3119, 17.4726)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F76 #57761F
analogous
#1F2C76 #3E1F76 #6A1F76
triadic
#3E1F76 #763E1F #1F763E
tetradic
#3E1F76 #761F2C #57761F #1F766A
square
#3E1F76 #761F2C #57761F #1F766A
split-complementary
#3E1F76 #766A1F #2C761F
monochromatic
#0D0618 #251246 #3E1F76 #572CA6 #7442CD

Accessibility & contrast

On white

12.63
#3E1F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3E1F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F76
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F76#FFFFFF#000000##FFFFFF
##3E1F761.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#003174
Tritanopia (blue-blind)
#2E3548
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e1f76;
/* rgb */ color: rgb(62, 31, 118);
/* oklch */ color: oklch(33.7% 0.139 293.9);
Tailwind
colors: {
  custom: {
    50: '#795d9e',
    500: '#3e1f76',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f76;
$custom-light: #795d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f76",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 261.379,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33692,
    "c": 0.13924,
    "h": 293.9
  },
  "luminance": 0.03312
}

Semantic roles & 50–950 ramp

primary
#3E1F76
secondary
#87AA47
accent
#E246AA
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3E1F76

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

Preview Lab → · Contrast checker → · Palette generator →

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