#3A1B96#3A1B96

#3A1B96 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.182 H 284.0°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#3A1B96
RGBrgb(58, 27, 150)
HSLhsl(255, 69%, 35%)
HSVhsv(255, 82%, 59%)
CMYKcmyk(61.3%, 82%, 0%, 41.2%)
CIE-LABlab(23.29, 46.45, -61.23)
CIE-LCHlch(23.29, 76.85, 307.18°)
OKLaboklab(35.98% 0.0441 -0.1765)
OKLCHoklch(35.98% 0.182 284)
XYZxyz(7.6402, 3.8849, 29.1955)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1B96 #77961B
analogous
#1B3996 #3A1B96 #781B96
triadic
#3A1B96 #963A1B #1B963A
tetradic
#3A1B96 #961B39 #77961B #1B9678
square
#3A1B96 #961B39 #77961B #1B9678
split-complementary
#3A1B96 #96781B #39961B
monochromatic
#12082E #261262 #3A1B96 #4E24CA #714DDF

Accessibility & contrast

On white

11.82
#3A1B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3A1B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1B96
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1B96#FFFFFF#000000##FFFFFF
##3A1B961.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003394
Tritanopia (blue-blind)
#004059
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3a1b96;
/* rgb */ color: rgb(58, 27, 150);
/* oklch */ color: oklch(36.0% 0.182 284.0);
Tailwind
colors: {
  custom: {
    50: '#7d5db6',
    500: '#3a1b96',
    950: '#000000',
  },
}
SCSS
$custom: #3a1b96;
$custom-light: #7d5db6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1b96",
  "rgb": {
    "r": 58,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 255.122,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35977,
    "c": 0.18195,
    "h": 284
  },
  "luminance": 0.03885
}

Semantic roles & 50–950 ramp

primary
#3A1B96
secondary
#A3C14C
accent
#EC3BC0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3A1B96

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

Preview Lab → · Contrast checker → · Palette generator →

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