#3A1985#3A1985

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

Color values

HEX#3A1985
RGBrgb(58, 25, 133)
HSLhsl(258, 68%, 31%)
HSVhsv(258, 81%, 52%)
CMYKcmyk(56.4%, 81.2%, 0%, 47.8%)
CIE-LABlab(21.16, 42.44, -54.15)
CIE-LCHlch(21.16, 68.79, 308.09°)
OKLaboklab(33.96% 0.0511 -0.1558)
OKLCHoklch(33.96% 0.164 288.1)
XYZxyz(6.3249, 3.2879, 22.4871)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1985 #648519
analogous
#192E85 #3A1985 #701985
triadic
#3A1985 #853A19 #19853A
tetradic
#3A1985 #85192E #648519 #198570
square
#3A1985 #85192E #648519 #198570
split-complementary
#3A1985 #857019 #2E8519
monochromatic
#0D061E #240F51 #3A1985 #5023B9 #6E3EDB

Accessibility & contrast

On white

12.67
#3A1985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1985
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1985#FFFFFF#000000##FFFFFF
##3A19851.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#003083
Tritanopia (blue-blind)
#1A394F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3a1985;
/* rgb */ color: rgb(58, 25, 133);
/* oklch */ color: oklch(34.0% 0.164 288.1);
Tailwind
colors: {
  custom: {
    50: '#7a5baa',
    500: '#3a1985',
    950: '#000000',
  },
}
SCSS
$custom: #3a1985;
$custom-light: #7a5baa;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1985",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 258.333,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33963,
    "c": 0.16396,
    "h": 288.1
  },
  "luminance": 0.03288
}

Semantic roles & 50–950 ramp

primary
#3A1985
secondary
#94B941
accent
#EB3DB6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1985

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

Preview Lab → · Contrast checker → · Palette generator →

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