#3E1A7F#3E1A7F

#3E1A7F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.156 H 292.1°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#3E1A7F
RGBrgb(62, 26, 127)
HSLhsl(261, 66%, 30%)
HSVhsv(261, 80%, 50%)
CMYKcmyk(51.2%, 79.5%, 0%, 50.2%)
CIE-LABlab(21.19, 40.82, -50.30)
CIE-LCHlch(21.19, 64.78, 309.07°)
OKLaboklab(33.91% 0.0587 -0.1444)
OKLCHoklch(33.91% 0.156 292.1)
XYZxyz(6.1857, 3.2950, 20.3846)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1A7F #5B7F1A
analogous
#1A297F #3E1A7F #701A7F
triadic
#3E1A7F #7F3E1A #1A7F3E
tetradic
#3E1A7F #7F1A29 #5B7F1A #1A7F70
square
#3E1A7F #7F1A29 #5B7F1A #1A7F70
split-complementary
#3E1A7F #7F701A #297F1A
monochromatic
#0C0519 #25104C #3E1A7F #5724B2 #733CD7

Accessibility & contrast

On white

12.66
#3E1A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3E1A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1A7F
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1A7F#FFFFFF#000000##FFFFFF
##3E1A7F1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e1a7f;
/* rgb */ color: rgb(62, 26, 127);
/* oklch */ color: oklch(33.9% 0.156 292.1);
Tailwind
colors: {
  custom: {
    50: '#7b5ba5',
    500: '#3e1a7f',
    950: '#000000',
  },
}
SCSS
$custom: #3e1a7f;
$custom-light: #7b5ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1a7f",
  "rgb": {
    "r": 62,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 261.386,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.33906,
    "c": 0.15588,
    "h": 292.1
  },
  "luminance": 0.03295
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3E1A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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