#3E1A72#3E1A72

#3E1A72 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.141 H 296.3°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#3E1A72
RGBrgb(62, 26, 114)
HSLhsl(265, 63%, 27%)
HSVhsv(265, 77%, 45%)
CMYKcmyk(45.6%, 77.2%, 0%, 55.3%)
CIE-LABlab(19.95, 37.15, -44.00)
CIE-LCHlch(19.95, 57.59, 310.17°)
OKLaboklab(32.66% 0.0623 -0.126)
OKLCHoklch(32.66% 0.141 296.3)
XYZxyz(5.3925, 2.9777, 16.2070)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1A72 #4E721A
analogous
#1A2272 #3E1A72 #6A1A72
triadic
#3E1A72 #723E1A #1A723E
tetradic
#3E1A72 #721A22 #4E721A #1A726A
square
#3E1A72 #721A22 #4E721A #1A726A
split-complementary
#3E1A72 #726A1A #22721A
monochromatic
#0E0619 #230F40 #3E1A72 #5925A4 #7535D1

Accessibility & contrast

On white

13.16
#3E1A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3E1A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1A72
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1A72#FFFFFF#000000##FFFFFF
##3E1A721.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#303144
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3e1a72;
/* rgb */ color: rgb(62, 26, 114);
/* oklch */ color: oklch(32.7% 0.141 296.3);
Tailwind
colors: {
  custom: {
    50: '#795a9b',
    500: '#3e1a72',
    950: '#000000',
  },
}
SCSS
$custom: #3e1a72;
$custom-light: #795a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1a72",
  "rgb": {
    "r": 62,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 264.545,
    "s": 62.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32661,
    "c": 0.14054,
    "h": 296.3
  },
  "luminance": 0.02978
}

Semantic roles & 50–950 ramp

primary
#3E1A72
secondary
#7DA741
accent
#E642A3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3E1A72

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

Preview Lab → · Contrast checker → · Palette generator →

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