#3A1E99#3A1E99

#3A1E99 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.183 H 283.1°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#3A1E99
RGBrgb(58, 30, 153)
HSLhsl(254, 67%, 36%)
HSVhsv(254, 80%, 60%)
CMYKcmyk(62.1%, 80.4%, 0%, 40%)
CIE-LABlab(24.09, 45.94, -61.76)
CIE-LCHlch(24.09, 76.97, 306.64°)
OKLaboklab(36.63% 0.0414 -0.1781)
OKLCHoklch(36.63% 0.183 283.1)
XYZxyz(7.9572, 4.1274, 30.5082)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1E99 #7D991E
analogous
#1E3F99 #3A1E99 #771E99
triadic
#3A1E99 #993A1E #1E993A
tetradic
#3A1E99 #991E3F #7D991E #1E9977
square
#3A1E99 #991E3F #7D991E #1E9977
split-complementary
#3A1E99 #99771E #3F991E
monochromatic
#130A33 #271466 #3A1E99 #4D28CC #7354DD

Accessibility & contrast

On white

11.50
#3A1E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3A1E99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1E99
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1E99#FFFFFF#000000##FFFFFF
##3A1E991.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003597
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a1e99;
/* rgb */ color: rgb(58, 30, 153);
/* oklch */ color: oklch(36.6% 0.183 283.1);
Tailwind
colors: {
  custom: {
    50: '#7d5eb8',
    500: '#3a1e99',
    950: '#000000',
  },
}
SCSS
$custom: #3a1e99;
$custom-light: #7d5eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1e99",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 153
  },
  "hsl": {
    "h": 253.659,
    "s": 67.213,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36628,
    "c": 0.18282,
    "h": 283.1
  },
  "luminance": 0.04128
}

Semantic roles & 50–950 ramp

primary
#3A1E99
secondary
#A8C152
accent
#EA3EC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A1E99

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

Preview Lab → · Contrast checker → · Palette generator →

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