#3E1A77#3E1A77

#3E1A77 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.146 H 294.6°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#3E1A77
RGBrgb(62, 26, 119)
HSLhsl(263, 64%, 28%)
HSVhsv(263, 78%, 47%)
CMYKcmyk(47.9%, 78.2%, 0%, 53.3%)
CIE-LABlab(20.42, 38.56, -46.46)
CIE-LCHlch(20.42, 60.37, 309.69°)
OKLaboklab(33.13% 0.061 -0.1332)
OKLCHoklch(33.13% 0.146 294.6)
XYZxyz(5.6849, 3.0947, 17.7470)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1A77 #53771A
analogous
#1A2477 #3E1A77 #6C1A77
triadic
#3E1A77 #773E1A #1A773E
tetradic
#3E1A77 #771A24 #53771A #1A776C
square
#3E1A77 #771A24 #53771A #1A776C
split-complementary
#3E1A77 #776C1A #24771A
monochromatic
#0D0519 #240F45 #3E1A77 #5825A9 #7438D3

Accessibility & contrast

On white

12.97
#3E1A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3E1A77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1A77
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1A77#FFFFFF#000000##FFFFFF
##3E1A771.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#003075
Tritanopia (blue-blind)
#2D3347
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e1a77;
/* rgb */ color: rgb(62, 26, 119);
/* oklch */ color: oklch(33.1% 0.146 294.6);
Tailwind
colors: {
  custom: {
    50: '#7a5b9f',
    500: '#3e1a77',
    950: '#000000',
  },
}
SCSS
$custom: #3e1a77;
$custom-light: #7a5b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1a77",
  "rgb": {
    "r": 62,
    "g": 26,
    "b": 119
  },
  "hsl": {
    "h": 263.226,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33131,
    "c": 0.14647,
    "h": 294.6
  },
  "luminance": 0.03095
}

Semantic roles & 50–950 ramp

primary
#3E1A77
secondary
#82AC41
accent
#E741A7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3E1A77

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

Preview Lab → · Contrast checker → · Palette generator →

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