#3A1B7D#3A1B7D

#3A1B7D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.152 H 289.9°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#3A1B7D
RGBrgb(58, 27, 125)
HSLhsl(259, 64%, 30%)
HSVhsv(259, 78%, 49%)
CMYKcmyk(53.6%, 78.4%, 0%, 51%)
CIE-LABlab(20.69, 39.13, -49.86)
CIE-LCHlch(20.69, 63.39, 308.12°)
OKLaboklab(33.39% 0.052 -0.1433)
OKLCHoklch(33.39% 0.152 289.9)
XYZxyz(5.8375, 3.1638, 19.7012)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1B7D #5E7D1B
analogous
#1B2D7D #3A1B7D #6B1B7D
triadic
#3A1B7D #7D3A1B #1B7D3A
tetradic
#3A1B7D #7D1B2D #5E7D1B #1B7D6B
square
#3A1B7D #7D1B2D #5E7D1B #1B7D6B
split-complementary
#3A1B7D #7D6B1B #2D7D1B
monochromatic
#0C0519 #23104B #3A1B7D #5126AF #6D3DD5

Accessibility & contrast

On white

12.86
#3A1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3A1B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1B7D
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1B7D#FFFFFF#000000##FFFFFF
##3A1B7D1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#22364B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3a1b7d;
/* rgb */ color: rgb(58, 27, 125);
/* oklch */ color: oklch(33.4% 0.152 289.9);
Tailwind
colors: {
  custom: {
    50: '#785ba4',
    500: '#3a1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #3a1b7d;
$custom-light: #785ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1b7d",
  "rgb": {
    "r": 58,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 258.98,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33386,
    "c": 0.15244,
    "h": 289.9
  },
  "luminance": 0.03164
}

Semantic roles & 50–950 ramp

primary
#3A1B7D
secondary
#8EB143
accent
#E740B3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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