#3A1987#3A1987

#3A1987 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.166 H 287.6°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#3A1987
RGBrgb(58, 25, 135)
HSLhsl(258, 69%, 31%)
HSVhsv(258, 81%, 53%)
CMYKcmyk(57%, 81.5%, 0%, 47.1%)
CIE-LABlab(21.37, 43.01, -55.06)
CIE-LCHlch(21.37, 69.87, 308.00°)
OKLaboklab(34.17% 0.0504 -0.1585)
OKLCHoklch(34.17% 0.166 287.6)
XYZxyz(6.4644, 3.3437, 23.2217)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1987 #668719
analogous
#192F87 #3A1987 #711987
triadic
#3A1987 #873A19 #19873A
tetradic
#3A1987 #87192F #668719 #198771
square
#3A1987 #87192F #668719 #198771
split-complementary
#3A1987 #877119 #2F8719
monochromatic
#0E0620 #240F53 #3A1987 #5023BB #6E3FDB

Accessibility & contrast

On white

12.58
#3A1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3A1987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1987
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1987#FFFFFF#000000##FFFFFF
##3A19871.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#183950
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3a1987;
/* rgb */ color: rgb(58, 25, 135);
/* oklch */ color: oklch(34.2% 0.166 287.6);
Tailwind
colors: {
  custom: {
    50: '#7a5bab',
    500: '#3a1987',
    950: '#000000',
  },
}
SCSS
$custom: #3a1987;
$custom-light: #7a5bab;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1987",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 258,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34171,
    "c": 0.1663,
    "h": 287.6
  },
  "luminance": 0.03344
}

Semantic roles & 50–950 ramp

primary
#3A1987
secondary
#96BA41
accent
#EC3CB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1987

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

Preview Lab → · Contrast checker → · Palette generator →

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