#3A1D85#3A1D85

#3A1D85 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.160 H 287.5°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#3A1D85
RGBrgb(58, 29, 133)
HSLhsl(257, 64%, 32%)
HSVhsv(257, 78%, 52%)
CMYKcmyk(56.4%, 78.2%, 0%, 47.8%)
CIE-LABlab(21.84, 40.49, -53.03)
CIE-LCHlch(21.84, 66.72, 307.36°)
OKLaboklab(34.44% 0.0481 -0.1526)
OKLCHoklch(34.44% 0.16 287.5)
XYZxyz(6.4167, 3.4714, 22.5177)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1D85 #68851D
analogous
#1D3485 #3A1D85 #6E1D85
triadic
#3A1D85 #853A1D #1D853A
tetradic
#3A1D85 #851D34 #68851D #1D856E
square
#3A1D85 #851D34 #68851D #1D856E
split-complementary
#3A1D85 #856E1D #34851D
monochromatic
#0E0721 #241253 #3A1D85 #5028B7 #6E46D7

Accessibility & contrast

On white

12.39
#3A1D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3A1D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1D85
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1D85#FFFFFF#000000##FFFFFF
##3A1D851.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#003183
Tritanopia (blue-blind)
#1A3A50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a1d85;
/* rgb */ color: rgb(58, 29, 133);
/* oklch */ color: oklch(34.4% 0.160 287.5);
Tailwind
colors: {
  custom: {
    50: '#795daa',
    500: '#3a1d85',
    950: '#000000',
  },
}
SCSS
$custom: #3a1d85;
$custom-light: #795daa;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1d85",
  "rgb": {
    "r": 58,
    "g": 29,
    "b": 133
  },
  "hsl": {
    "h": 256.731,
    "s": 64.198,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34436,
    "c": 0.15999,
    "h": 287.5
  },
  "luminance": 0.03472
}

Semantic roles & 50–950 ramp

primary
#3A1D85
secondary
#98B846
accent
#E741B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1D85

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

Preview Lab → · Contrast checker → · Palette generator →

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