#3E1A71#3E1A71

#3E1A71 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.139 H 296.7°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#3E1A71
RGBrgb(62, 26, 113)
HSLhsl(265, 63%, 27%)
HSVhsv(265, 77%, 44%)
CMYKcmyk(45.1%, 77%, 0%, 55.7%)
CIE-LABlab(19.86, 36.87, -43.51)
CIE-LCHlch(19.86, 57.03, 310.28°)
OKLaboklab(32.57% 0.0626 -0.1245)
OKLCHoklch(32.57% 0.139 296.7)
XYZxyz(5.3359, 2.9551, 15.9088)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1A71 #4D711A
analogous
#1A2171 #3E1A71 #6A1A71
triadic
#3E1A71 #713E1A #1A713E
tetradic
#3E1A71 #711A21 #4D711A #1A716A
square
#3E1A71 #711A21 #4D711A #1A716A
split-complementary
#3E1A71 #716A1A #21711A
monochromatic
#0E0619 #230F3F #3E1A71 #5925A3 #7535D0

Accessibility & contrast

On white

13.20
#3E1A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3E1A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1A71
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1A71#FFFFFF#000000##FFFFFF
##3E1A711.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#002F6F
Tritanopia (blue-blind)
#313144
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3e1a71;
/* rgb */ color: rgb(62, 26, 113);
/* oklch */ color: oklch(32.6% 0.139 296.7);
Tailwind
colors: {
  custom: {
    50: '#795a9b',
    500: '#3e1a71',
    950: '#000000',
  },
}
SCSS
$custom: #3e1a71;
$custom-light: #795a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1a71",
  "rgb": {
    "r": 62,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 264.828,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32568,
    "c": 0.13935,
    "h": 296.7
  },
  "luminance": 0.02955
}

Semantic roles & 50–950 ramp

primary
#3E1A71
secondary
#7CA641
accent
#E642A2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3E1A71

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

Preview Lab → · Contrast checker → · Palette generator →

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