#3A1B79#3A1B79

#3A1B79 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.148 H 291.1°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#3A1B79
RGBrgb(58, 27, 121)
HSLhsl(260, 64%, 29%)
HSVhsv(260, 78%, 47%)
CMYKcmyk(52.1%, 77.7%, 0%, 52.5%)
CIE-LABlab(20.30, 37.96, -47.96)
CIE-LCHlch(20.30, 61.16, 308.36°)
OKLaboklab(32.99% 0.0531 -0.1377)
OKLCHoklch(32.99% 0.148 291.1)
XYZxyz(5.5871, 3.0637, 18.3824)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1B79 #5A791B
analogous
#1B2B79 #3A1B79 #691B79
triadic
#3A1B79 #793A1B #1B793A
tetradic
#3A1B79 #791B2B #5A791B #1B7969
square
#3A1B79 #791B2B #5A791B #1B7969
split-complementary
#3A1B79 #79691B #2B791B
monochromatic
#0C0619 #221047 #3A1B79 #5226AB #6D3BD3

Accessibility & contrast

On white

13.02
#3A1B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3A1B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1B79
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1B79#FFFFFF#000000##FFFFFF
##3A1B791.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#253549
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a1b79;
/* rgb */ color: rgb(58, 27, 121);
/* oklch */ color: oklch(33.0% 0.148 291.1);
Tailwind
colors: {
  custom: {
    50: '#775ba1',
    500: '#3a1b79',
    950: '#000000',
  },
}
SCSS
$custom: #3a1b79;
$custom-light: #775ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1b79",
  "rgb": {
    "r": 58,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 259.787,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32992,
    "c": 0.1476,
    "h": 291.1
  },
  "luminance": 0.03064
}

Semantic roles & 50–950 ramp

primary
#3A1B79
secondary
#8AAD43
accent
#E741B0
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #3A1B79

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

Preview Lab → · Contrast checker → · Palette generator →

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