#3A1B85#3A1B85

#3A1B85 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.162 H 287.8°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#3A1B85
RGBrgb(58, 27, 133)
HSLhsl(258, 66%, 31%)
HSVhsv(258, 80%, 52%)
CMYKcmyk(56.4%, 79.7%, 0%, 47.8%)
CIE-LABlab(21.49, 41.48, -53.60)
CIE-LCHlch(21.49, 67.78, 307.74°)
OKLaboklab(34.19% 0.0496 -0.1542)
OKLCHoklch(34.19% 0.162 287.8)
XYZxyz(6.3692, 3.3765, 22.5019)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1B85 #66851B
analogous
#1B3185 #3A1B85 #6F1B85
triadic
#3A1B85 #853A1B #1B853A
tetradic
#3A1B85 #851B31 #66851B #1B856F
square
#3A1B85 #851B31 #66851B #1B856F
split-complementary
#3A1B85 #856F1B #31851B
monochromatic
#0E061F #241152 #3A1B85 #5025B8 #6E42D9

Accessibility & contrast

On white

12.53
#3A1B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3A1B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1B85
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1B85#FFFFFF#000000##FFFFFF
##3A1B851.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1b85;
/* rgb */ color: rgb(58, 27, 133);
/* oklch */ color: oklch(34.2% 0.162 287.8);
Tailwind
colors: {
  custom: {
    50: '#7a5caa',
    500: '#3a1b85',
    950: '#000000',
  },
}
SCSS
$custom: #3a1b85;
$custom-light: #7a5caa;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1b85",
  "rgb": {
    "r": 58,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 257.547,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34193,
    "c": 0.16202,
    "h": 287.8
  },
  "luminance": 0.03377
}

Semantic roles & 50–950 ramp

primary
#3A1B85
secondary
#96B844
accent
#E93FB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1B85

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

Preview Lab → · Contrast checker → · Palette generator →

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