#3A1456#3A1456

#3A1456 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.9% C 0.114 H 306.9°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#3A1456
RGBrgb(58, 20, 86)
HSLhsl(275, 62%, 21%)
HSVhsv(275, 77%, 34%)
CMYKcmyk(32.6%, 76.7%, 0%, 66.3%)
CIE-LABlab(15.86, 31.74, -32.22)
CIE-LCHlch(15.86, 45.23, 314.57°)
OKLaboklab(28.87% 0.0686 -0.0914)
OKLCHoklch(28.87% 0.114 306.9)
XYZxyz(3.6744, 2.0718, 9.0086)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1456 #305614
analogous
#191456 #3A1456 #561451
triadic
#3A1456 #563A14 #14563A
tetradic
#3A1456 #561914 #305614 #145156
square
#3A1456 #561914 #305614 #145156
split-complementary
#3A1456 #515614 #145619
monochromatic
#110619 #190824 #3A1456 #5B2088 #7D2BB9

Accessibility & contrast

On white

14.85
#3A1456 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#3A1456 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1456
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1456#FFFFFF#000000##FFFFFF
##3A14561.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002658
Deuteranopia (green-blind)
#012855
Tritanopia (blue-blind)
#352333
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a1456;
/* rgb */ color: rgb(58, 20, 86);
/* oklch */ color: oklch(28.9% 0.114 306.9);
Tailwind
colors: {
  custom: {
    50: '#735586',
    500: '#3a1456',
    950: '#000000',
  },
}
SCSS
$custom: #3a1456;
$custom-light: #735586;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1456",
  "rgb": {
    "r": 58,
    "g": 20,
    "b": 86
  },
  "hsl": {
    "h": 274.545,
    "s": 62.264,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28873,
    "c": 0.1143,
    "h": 306.9
  },
  "luminance": 0.02072
}

Semantic roles & 50–950 ramp

primary
#3A1456
secondary
#5C8E38
accent
#E54288
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A1456

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

Preview Lab → · Contrast checker → · Palette generator →

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