#3A1B95#3A1B95

#3A1B95 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.181 H 284.2°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#3A1B95
RGBrgb(58, 27, 149)
HSLhsl(255, 69%, 35%)
HSVhsv(255, 82%, 58%)
CMYKcmyk(61.1%, 81.9%, 0%, 41.6%)
CIE-LABlab(23.18, 46.16, -60.79)
CIE-LCHlch(23.18, 76.33, 307.21°)
OKLaboklab(35.87% 0.0444 -0.1752)
OKLCHoklch(35.87% 0.181 284.2)
XYZxyz(7.5600, 3.8528, 28.7732)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1B95 #76951B
analogous
#1B3995 #3A1B95 #771B95
triadic
#3A1B95 #953A1B #1B953A
tetradic
#3A1B95 #951B39 #76951B #1B9577
square
#3A1B95 #951B39 #76951B #1B9577
split-complementary
#3A1B95 #95771B #39951B
monochromatic
#12082D #261261 #3A1B95 #4E24C9 #714CDF

Accessibility & contrast

On white

11.86
#3A1B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3A1B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1B95
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1B95#FFFFFF#000000##FFFFFF
##3A1B951.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1b95;
/* rgb */ color: rgb(58, 27, 149);
/* oklch */ color: oklch(35.9% 0.181 284.2);
Tailwind
colors: {
  custom: {
    50: '#7c5db5',
    500: '#3a1b95',
    950: '#000000',
  },
}
SCSS
$custom: #3a1b95;
$custom-light: #7c5db5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1b95",
  "rgb": {
    "r": 58,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 255.246,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35869,
    "c": 0.18079,
    "h": 284.2
  },
  "luminance": 0.03853
}

Semantic roles & 50–950 ramp

primary
#3A1B95
secondary
#A3C14B
accent
#EC3CBF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3A1B95

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

Preview Lab → · Contrast checker → · Palette generator →

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