#3E1A76#3E1A76

#3E1A76 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.145 H 294.9°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#3E1A76
RGBrgb(62, 26, 118)
HSLhsl(263, 64%, 28%)
HSVhsv(263, 78%, 46%)
CMYKcmyk(47.5%, 78%, 0%, 53.7%)
CIE-LABlab(20.33, 38.28, -45.97)
CIE-LCHlch(20.33, 59.82, 309.78°)
OKLaboklab(33.04% 0.0613 -0.1317)
OKLCHoklch(33.04% 0.145 294.9)
XYZxyz(5.6251, 3.0708, 17.4324)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1A76 #52761A
analogous
#1A2476 #3E1A76 #6C1A76
triadic
#3E1A76 #763E1A #1A763E
tetradic
#3E1A76 #761A24 #52761A #1A766C
square
#3E1A76 #761A24 #52761A #1A766C
split-complementary
#3E1A76 #766C1A #24761A
monochromatic
#0D0619 #240F44 #3E1A76 #5825A8 #7437D3

Accessibility & contrast

On white

13.01
#3E1A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3E1A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1A76
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1A76#FFFFFF#000000##FFFFFF
##3E1A761.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#003074
Tritanopia (blue-blind)
#2E3347
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e1a76;
/* rgb */ color: rgb(62, 26, 118);
/* oklch */ color: oklch(33.0% 0.145 294.9);
Tailwind
colors: {
  custom: {
    50: '#7a5b9e',
    500: '#3e1a76',
    950: '#000000',
  },
}
SCSS
$custom: #3e1a76;
$custom-light: #7a5b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1a76",
  "rgb": {
    "r": 62,
    "g": 26,
    "b": 118
  },
  "hsl": {
    "h": 263.478,
    "s": 63.889,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33036,
    "c": 0.14529,
    "h": 294.9
  },
  "luminance": 0.03071
}

Semantic roles & 50–950 ramp

primary
#3E1A76
secondary
#81AB41
accent
#E741A6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3E1A76

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

Preview Lab → · Contrast checker → · Palette generator →

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