#3A1A99#3A1A99

#3A1A99 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.186 H 283.6°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#3A1A99
RGBrgb(58, 26, 153)
HSLhsl(255, 71%, 35%)
HSVhsv(255, 83%, 60%)
CMYKcmyk(62.1%, 83%, 0%, 40%)
CIE-LABlab(23.46, 47.75, -62.79)
CIE-LCHlch(23.46, 78.88, 307.26°)
OKLaboklab(36.2% 0.0436 -0.181)
OKLCHoklch(36.2% 0.186 283.6)
XYZxyz(7.8623, 3.9377, 30.4766)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1A99 #79991A
analogous
#1A3A99 #3A1A99 #791A99
triadic
#3A1A99 #993A1A #1A993A
tetradic
#3A1A99 #991A3A #79991A #1A9979
square
#3A1A99 #991A3A #79991A #1A9979
split-complementary
#3A1A99 #99791A #3A991A
monochromatic
#120830 #261165 #3A1A99 #4E23CD #724DE1

Accessibility & contrast

On white

11.75
#3A1A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3A1A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1A99
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1A99#FFFFFF#000000##FFFFFF
##3A1A991.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9C
Deuteranopia (green-blind)
#003497
Tritanopia (blue-blind)
#00415B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3a1a99;
/* rgb */ color: rgb(58, 26, 153);
/* oklch */ color: oklch(36.2% 0.186 283.6);
Tailwind
colors: {
  custom: {
    50: '#7d5cb8',
    500: '#3a1a99',
    950: '#000000',
  },
}
SCSS
$custom: #3a1a99;
$custom-light: #7d5cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1a99",
  "rgb": {
    "r": 58,
    "g": 26,
    "b": 153
  },
  "hsl": {
    "h": 255.118,
    "s": 70.95,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36196,
    "c": 0.18622,
    "h": 283.6
  },
  "luminance": 0.03938
}

Semantic roles & 50–950 ramp

primary
#3A1A99
secondary
#A5C34C
accent
#EE3AC0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3A1A99

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

Preview Lab → · Contrast checker → · Palette generator →

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