#3E1A7C#3E1A7C

#3E1A7C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.152 H 293.0°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#3E1A7C
RGBrgb(62, 26, 124)
HSLhsl(262, 65%, 29%)
HSVhsv(262, 79%, 49%)
CMYKcmyk(50%, 79%, 0%, 51.4%)
CIE-LABlab(20.90, 39.97, -48.87)
CIE-LCHlch(20.90, 63.13, 309.28°)
OKLaboklab(33.61% 0.0596 -0.1402)
OKLCHoklch(33.61% 0.152 293)
XYZxyz(5.9931, 3.2180, 19.3702)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1A7C #587C1A
analogous
#1A277C #3E1A7C #6F1A7C
triadic
#3E1A7C #7C3E1A #1A7C3E
tetradic
#3E1A7C #7C1A27 #587C1A #1A7C6F
square
#3E1A7C #7C1A27 #587C1A #1A7C6F
split-complementary
#3E1A7C #7C6F1A #277C1A
monochromatic
#0D0519 #250F49 #3E1A7C #5725AF #743BD6

Accessibility & contrast

On white

12.78
#3E1A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3E1A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1A7C
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1A7C#FFFFFF#000000##FFFFFF
##3E1A7C1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#2B354A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e1a7c;
/* rgb */ color: rgb(62, 26, 124);
/* oklch */ color: oklch(33.6% 0.152 293.0);
Tailwind
colors: {
  custom: {
    50: '#7a5ba3',
    500: '#3e1a7c',
    950: '#000000',
  },
}
SCSS
$custom: #3e1a7c;
$custom-light: #7a5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1a7c",
  "rgb": {
    "r": 62,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 262.041,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33613,
    "c": 0.15237,
    "h": 293
  },
  "luminance": 0.03218
}

Semantic roles & 50–950 ramp

primary
#3E1A7C
secondary
#88B042
accent
#E840AA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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