#3A1B87#3A1B87

#3A1B87 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.164 H 287.3°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#3A1B87
RGBrgb(58, 27, 135)
HSLhsl(257, 67%, 32%)
HSVhsv(257, 80%, 53%)
CMYKcmyk(57%, 80%, 0%, 47.1%)
CIE-LABlab(21.70, 42.07, -54.52)
CIE-LCHlch(21.70, 68.86, 307.65°)
OKLaboklab(34.4% 0.049 -0.1569)
OKLCHoklch(34.4% 0.164 287.3)
XYZxyz(6.5087, 3.4323, 23.2365)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1B87 #68871B
analogous
#1B3287 #3A1B87 #701B87
triadic
#3A1B87 #873A1B #1B873A
tetradic
#3A1B87 #871B32 #68871B #1B8770
square
#3A1B87 #871B32 #68871B #1B8770
split-complementary
#3A1B87 #87701B #32871B
monochromatic
#0E0721 #241154 #3A1B87 #5025BA #6E43D9

Accessibility & contrast

On white

12.45
#3A1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1B87
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1B87#FFFFFF#000000##FFFFFF
##3A1B871.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#183A51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a1b87;
/* rgb */ color: rgb(58, 27, 135);
/* oklch */ color: oklch(34.4% 0.164 287.3);
Tailwind
colors: {
  custom: {
    50: '#7a5cab',
    500: '#3a1b87',
    950: '#000000',
  },
}
SCSS
$custom: #3a1b87;
$custom-light: #7a5cab;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1b87",
  "rgb": {
    "r": 58,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 257.222,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34398,
    "c": 0.1644,
    "h": 287.3
  },
  "luminance": 0.03433
}

Semantic roles & 50–950 ramp

primary
#3A1B87
secondary
#98BA44
accent
#EA3EB8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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