#3A1F76#3A1F76

#3A1F76 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.2% C 0.139 H 291.1°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#3A1F76
RGBrgb(58, 31, 118)
HSLhsl(259, 58%, 29%)
HSVhsv(259, 74%, 46%)
CMYKcmyk(50.8%, 73.7%, 0%, 53.7%)
CIE-LABlab(20.78, 34.91, -45.25)
CIE-LCHlch(20.78, 57.15, 307.65°)
OKLaboklab(33.25% 0.0501 -0.1298)
OKLCHoklch(33.25% 0.139 291.1)
XYZxyz(5.5040, 3.1873, 17.4612)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1F76 #5B761F
analogous
#1F3076 #3A1F76 #661F76
triadic
#3A1F76 #763A1F #1F763A
tetradic
#3A1F76 #761F30 #5B761F #1F7666
square
#3A1F76 #761F30 #5B761F #1F7666
split-complementary
#3A1F76 #76661F #30761F
monochromatic
#0C0618 #221246 #3A1F76 #522CA6 #6D42CD

Accessibility & contrast

On white

12.82
#3A1F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3A1F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1F76
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1F76#FFFFFF#000000##FFFFFF
##3A1F761.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#003074
Tritanopia (blue-blind)
#263548
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3a1f76;
/* rgb */ color: rgb(58, 31, 118);
/* oklch */ color: oklch(33.2% 0.139 291.1);
Tailwind
colors: {
  custom: {
    50: '#775d9e',
    500: '#3a1f76',
    950: '#000000',
  },
}
SCSS
$custom: #3a1f76;
$custom-light: #775d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1f76",
  "rgb": {
    "r": 58,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 258.621,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33246,
    "c": 0.13913,
    "h": 291.1
  },
  "luminance": 0.03188
}

Semantic roles & 50–950 ramp

primary
#3A1F76
secondary
#8BAA47
accent
#E246B1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A1F76

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

Preview Lab → · Contrast checker → · Palette generator →

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