#3A1984#3A1984

#3A1984 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.163 H 288.4°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#3A1984
RGBrgb(58, 25, 132)
HSLhsl(259, 68%, 31%)
HSVhsv(259, 81%, 52%)
CMYKcmyk(56.1%, 81.1%, 0%, 48.2%)
CIE-LABlab(21.06, 42.15, -53.69)
CIE-LCHlch(21.06, 68.26, 308.13°)
OKLaboklab(33.86% 0.0514 -0.1545)
OKLCHoklch(33.86% 0.163 288.4)
XYZxyz(6.2562, 3.2604, 22.1250)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1984 #638419
analogous
#192D84 #3A1984 #6F1984
triadic
#3A1984 #843A19 #19843A
tetradic
#3A1984 #84192D #638419 #19846F
square
#3A1984 #84192D #638419 #19846F
split-complementary
#3A1984 #846F19 #2D8419
monochromatic
#0D061D #230F51 #3A1984 #5123B7 #6E3DDA

Accessibility & contrast

On white

12.71
#3A1984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3A1984 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1984
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1984#FFFFFF#000000##FFFFFF
##3A19841.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1984;
/* rgb */ color: rgb(58, 25, 132);
/* oklch */ color: oklch(33.9% 0.163 288.4);
Tailwind
colors: {
  custom: {
    50: '#7a5ba9',
    500: '#3a1984',
    950: '#000000',
  },
}
SCSS
$custom: #3a1984;
$custom-light: #7a5ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1984",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 132
  },
  "hsl": {
    "h": 258.505,
    "s": 68.153,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33859,
    "c": 0.16279,
    "h": 288.4
  },
  "luminance": 0.03261
}

Semantic roles & 50–950 ramp

primary
#3A1984
secondary
#93B841
accent
#EB3DB5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1984

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

Preview Lab → · Contrast checker → · Palette generator →

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