#3A1D8B#3A1D8B

#3A1D8B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.167 H 286.1°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#3A1D8B
RGBrgb(58, 29, 139)
HSLhsl(256, 65%, 33%)
HSVhsv(256, 79%, 55%)
CMYKcmyk(58.3%, 79.1%, 0%, 45.5%)
CIE-LABlab(22.45, 42.27, -55.79)
CIE-LCHlch(22.45, 69.99, 307.15°)
OKLaboklab(35.05% 0.0463 -0.1606)
OKLCHoklch(35.05% 0.167 286.1)
XYZxyz(6.8431, 3.6420, 24.7635)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1D8B #6E8B1D
analogous
#1D378B #3A1D8B #711D8B
triadic
#3A1D8B #8B3A1D #1D8B3A
tetradic
#3A1D8B #8B1D37 #6E8B1D #1D8B71
square
#3A1D8B #8B1D37 #6E8B1D #1D8B71
split-complementary
#3A1D8B #8B711D #378B1D
monochromatic
#100826 #251258 #3A1D8B #4F28BE #6F49D9

Accessibility & contrast

On white

12.15
#3A1D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3A1D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1D8B
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1D8B#FFFFFF#000000##FFFFFF
##3A1D8B1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#123D53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3a1d8b;
/* rgb */ color: rgb(58, 29, 139);
/* oklch */ color: oklch(35.0% 0.167 286.1);
Tailwind
colors: {
  custom: {
    50: '#7a5dae',
    500: '#3a1d8b',
    950: '#000000',
  },
}
SCSS
$custom: #3a1d8b;
$custom-light: #7a5dae;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1d8b",
  "rgb": {
    "r": 58,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 255.818,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35047,
    "c": 0.16719,
    "h": 286.1
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#3A1D8B
secondary
#9DBB49
accent
#E83FBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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