#3A1976#3A1976

#3A1976 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.146 H 292.4°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#3A1976
RGBrgb(58, 25, 118)
HSLhsl(261, 65%, 28%)
HSVhsv(261, 79%, 46%)
CMYKcmyk(50.8%, 78.8%, 0%, 53.7%)
CIE-LABlab(19.65, 38.10, -47.10)
CIE-LCHlch(19.65, 60.58, 308.97°)
OKLaboklab(32.45% 0.0557 -0.1352)
OKLCHoklch(32.45% 0.146 292.4)
XYZxyz(5.3617, 2.9026, 17.4138)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1976 #557619
analogous
#192776 #3A1976 #681976
triadic
#3A1976 #763A19 #19763A
tetradic
#3A1976 #761927 #557619 #197668
square
#3A1976 #761927 #557619 #197668
split-complementary
#3A1976 #766819 #277619
monochromatic
#0C0519 #210E43 #3A1976 #5324A8 #6E35D4

Accessibility & contrast

On white

13.29
#3A1976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#3A1976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1976
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1976#FFFFFF#000000##FFFFFF
##3A19761.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002E74
Tritanopia (blue-blind)
#273246
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a1976;
/* rgb */ color: rgb(58, 25, 118);
/* oklch */ color: oklch(32.4% 0.146 292.4);
Tailwind
colors: {
  custom: {
    50: '#775a9e',
    500: '#3a1976',
    950: '#000000',
  },
}
SCSS
$custom: #3a1976;
$custom-light: #775a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1976",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 261.29,
    "s": 65.035,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32448,
    "c": 0.14621,
    "h": 292.4
  },
  "luminance": 0.02903
}

Semantic roles & 50–950 ramp

primary
#3A1976
secondary
#85AB40
accent
#E840AC
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A1976

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

Preview Lab → · Contrast checker → · Palette generator →

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