#3A1A9E#3A1A9E

#3A1A9E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.192 H 282.6°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#3A1A9E
RGBrgb(58, 26, 158)
HSLhsl(255, 72%, 36%)
HSVhsv(255, 84%, 62%)
CMYKcmyk(63.3%, 83.5%, 0%, 38%)
CIE-LABlab(24.02, 49.18, -64.93)
CIE-LCHlch(24.02, 81.46, 307.14°)
OKLaboklab(36.74% 0.0419 -0.1873)
OKLCHoklch(36.74% 0.192 282.6)
XYZxyz(8.2839, 4.1064, 32.6972)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1A9E #7E9E1A
analogous
#1A3C9E #3A1A9E #7C1A9E
triadic
#3A1A9E #9E3A1A #1A9E3A
tetradic
#3A1A9E #9E1A3C #7E9E1A #1A9E7C
square
#3A1A9E #9E1A3C #7E9E1A #1A9E7C
split-complementary
#3A1A9E #9E7C1A #3C9E1A
monochromatic
#130935 #271169 #3A1A9E #4D23D3 #7450E2

Accessibility & contrast

On white

11.53
#3A1A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3A1A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1A9E
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1A9E#FFFFFF#000000##FFFFFF
##3A1A9E1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00359C
Tritanopia (blue-blind)
#00435E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a1a9e;
/* rgb */ color: rgb(58, 26, 158);
/* oklch */ color: oklch(36.7% 0.192 282.6);
Tailwind
colors: {
  custom: {
    50: '#7e5dbc',
    500: '#3a1a9e',
    950: '#000000',
  },
}
SCSS
$custom: #3a1a9e;
$custom-light: #7e5dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1a9e",
  "rgb": {
    "r": 58,
    "g": 26,
    "b": 158
  },
  "hsl": {
    "h": 254.545,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36743,
    "c": 0.19191,
    "h": 282.6
  },
  "luminance": 0.04107
}

Semantic roles & 50–950 ramp

primary
#3A1A9E
secondary
#A8C54F
accent
#EE39C3
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3A1A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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