#3A1A84#3A1A84

#3A1A84 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.162 H 288.2°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#3A1A84
RGBrgb(58, 26, 132)
HSLhsl(258, 67%, 31%)
HSVhsv(258, 80%, 52%)
CMYKcmyk(56.1%, 80.3%, 0%, 48.2%)
CIE-LABlab(21.22, 41.67, -53.42)
CIE-LCHlch(21.22, 67.75, 307.96°)
OKLaboklab(33.97% 0.0507 -0.1537)
OKLCHoklch(33.97% 0.162 288.2)
XYZxyz(6.2779, 3.3040, 22.1322)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1A84 #64841A
analogous
#1A2F84 #3A1A84 #6F1A84
triadic
#3A1A84 #843A1A #1A843A
tetradic
#3A1A84 #841A2F #64841A #1A846F
square
#3A1A84 #841A2F #64841A #1A846F
split-complementary
#3A1A84 #846F1A #2F841A
monochromatic
#0D061E #241051 #3A1A84 #5024B7 #6E3FD9

Accessibility & contrast

On white

12.64
#3A1A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1A84
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1A84#FFFFFF#000000##FFFFFF
##3A1A841.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#1B394F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3a1a84;
/* rgb */ color: rgb(58, 26, 132);
/* oklch */ color: oklch(34.0% 0.162 288.2);
Tailwind
colors: {
  custom: {
    50: '#795ba9',
    500: '#3a1a84',
    950: '#000000',
  },
}
SCSS
$custom: #3a1a84;
$custom-light: #795ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1a84",
  "rgb": {
    "r": 58,
    "g": 26,
    "b": 132
  },
  "hsl": {
    "h": 258.113,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33973,
    "c": 0.16182,
    "h": 288.2
  },
  "luminance": 0.03304
}

Semantic roles & 50–950 ramp

primary
#3A1A84
secondary
#94B842
accent
#EA3EB6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1A84

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

Preview Lab → · Contrast checker → · Palette generator →

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