#3A1884#3A1884

#3A1884 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.164 H 288.6°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#3A1884
RGBrgb(58, 24, 132)
HSLhsl(259, 69%, 31%)
HSVhsv(259, 82%, 52%)
CMYKcmyk(56.1%, 81.8%, 0%, 48.2%)
CIE-LABlab(20.90, 42.61, -53.95)
CIE-LCHlch(20.90, 68.75, 308.30°)
OKLaboklab(33.75% 0.0521 -0.1552)
OKLCHoklch(33.75% 0.164 288.6)
XYZxyz(6.2352, 3.2184, 22.1180)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1884 #628418
analogous
#182C84 #3A1884 #701884
triadic
#3A1884 #843A18 #18843A
tetradic
#3A1884 #84182C #628418 #188470
square
#3A1884 #84182C #628418 #188470
split-complementary
#3A1884 #847018 #2C8418
monochromatic
#0C051C #230F50 #3A1884 #5121B8 #6E3BDB

Accessibility & contrast

On white

12.78
#3A1884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3A1884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1884
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1884#FFFFFF#000000##FFFFFF
##3A18841.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002F82
Tritanopia (blue-blind)
#1B384E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3a1884;
/* rgb */ color: rgb(58, 24, 132);
/* oklch */ color: oklch(33.7% 0.164 288.6);
Tailwind
colors: {
  custom: {
    50: '#7a5aa9',
    500: '#3a1884',
    950: '#000000',
  },
}
SCSS
$custom: #3a1884;
$custom-light: #7a5aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1884",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 258.889,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33748,
    "c": 0.16374,
    "h": 288.6
  },
  "luminance": 0.03219
}

Semantic roles & 50–950 ramp

primary
#3A1884
secondary
#92B840
accent
#EC3CB5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1884

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

Preview Lab → · Contrast checker → · Palette generator →

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