#3A1B7B#3A1B7B

#3A1B7B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.150 H 290.5°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#3A1B7B
RGBrgb(58, 27, 123)
HSLhsl(259, 64%, 29%)
HSVhsv(259, 78%, 48%)
CMYKcmyk(52.8%, 78%, 0%, 51.8%)
CIE-LABlab(20.49, 38.55, -48.91)
CIE-LCHlch(20.49, 62.28, 308.24°)
OKLaboklab(33.19% 0.0526 -0.1405)
OKLCHoklch(33.19% 0.15 290.5)
XYZxyz(5.7110, 3.1132, 19.0350)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1B7B #5C7B1B
analogous
#1B2C7B #3A1B7B #6A1B7B
triadic
#3A1B7B #7B3A1B #1B7B3A
tetradic
#3A1B7B #7B1B2C #5C7B1B #1B7B6A
square
#3A1B7B #7B1B2C #5C7B1B #1B7B6A
split-complementary
#3A1B7B #7B6A1B #2C7B1B
monochromatic
#0C0619 #221049 #3A1B7B #5226AD #6D3CD4

Accessibility & contrast

On white

12.94
#3A1B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3A1B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1B7B
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1B7B#FFFFFF#000000##FFFFFF
##3A1B7B1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#23354A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a1b7b;
/* rgb */ color: rgb(58, 27, 123);
/* oklch */ color: oklch(33.2% 0.150 290.5);
Tailwind
colors: {
  custom: {
    50: '#785ba2',
    500: '#3a1b7b',
    950: '#000000',
  },
}
SCSS
$custom: #3a1b7b;
$custom-light: #785ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1b7b",
  "rgb": {
    "r": 58,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 259.375,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33188,
    "c": 0.15003,
    "h": 290.5
  },
  "luminance": 0.03113
}

Semantic roles & 50–950 ramp

primary
#3A1B7B
secondary
#8CAF43
accent
#E741B1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A1B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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