#3E1A7E#3E1A7E

#3E1A7E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.155 H 292.4°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#3E1A7E
RGBrgb(62, 26, 126)
HSLhsl(262, 66%, 30%)
HSVhsv(262, 79%, 49%)
CMYKcmyk(50.8%, 79.4%, 0%, 50.6%)
CIE-LABlab(21.09, 40.54, -49.82)
CIE-LCHlch(21.09, 64.23, 309.13°)
OKLaboklab(33.81% 0.059 -0.143)
OKLCHoklch(33.81% 0.155 292.4)
XYZxyz(6.1208, 3.2691, 20.0431)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1A7E #5A7E1A
analogous
#1A287E #3E1A7E #701A7E
triadic
#3E1A7E #7E3E1A #1A7E3E
tetradic
#3E1A7E #7E1A28 #5A7E1A #1A7E70
square
#3E1A7E #7E1A28 #5A7E1A #1A7E70
split-complementary
#3E1A7E #7E701A #287E1A
monochromatic
#0C0519 #25104B #3E1A7E #5724B1 #743CD7

Accessibility & contrast

On white

12.70
#3E1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3E1A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1A7E
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1A7E#FFFFFF#000000##FFFFFF
##3E1A7E1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#29364B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e1a7e;
/* rgb */ color: rgb(62, 26, 126);
/* oklch */ color: oklch(33.8% 0.155 292.4);
Tailwind
colors: {
  custom: {
    50: '#7b5ba4',
    500: '#3e1a7e',
    950: '#000000',
  },
}
SCSS
$custom: #3e1a7e;
$custom-light: #7b5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1a7e",
  "rgb": {
    "r": 62,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 261.6,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33808,
    "c": 0.15471,
    "h": 292.4
  },
  "luminance": 0.03269
}

Semantic roles & 50–950 ramp

primary
#3E1A7E
secondary
#8AB242
accent
#E93FAC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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