#3A1156#3A1156

#3A1156 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.118 H 307.5°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#3A1156
RGBrgb(58, 17, 86)
HSLhsl(276, 67%, 20%)
HSVhsv(276, 80%, 34%)
CMYKcmyk(32.6%, 80.2%, 0%, 66.3%)
CIE-LABlab(15.34, 33.21, -33.06)
CIE-LCHlch(15.34, 46.86, 315.13°)
OKLaboklab(28.51% 0.072 -0.0939)
OKLCHoklch(28.51% 0.118 307.5)
XYZxyz(3.6247, 1.9724, 8.9920)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1156 #2D5611
analogous
#171156 #3A1156 #56114F
triadic
#3A1156 #563A11 #11563A
tetradic
#3A1156 #561711 #2D5611 #114F56
square
#3A1156 #561711 #2D5611 #114F56
split-complementary
#3A1156 #4F5611 #115617
monochromatic
#11051A #180723 #3A1156 #5C1B89 #7F25BC

Accessibility & contrast

On white

15.06
#3A1156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#3A1156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1156
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1156#FFFFFF#000000##FFFFFF
##3A11561.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#002755
Tritanopia (blue-blind)
#352232
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3a1156;
/* rgb */ color: rgb(58, 17, 86);
/* oklch */ color: oklch(28.5% 0.118 307.5);
Tailwind
colors: {
  custom: {
    50: '#745486',
    500: '#3a1156',
    950: '#000000',
  },
}
SCSS
$custom: #3a1156;
$custom-light: #745486;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1156",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 275.652,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28506,
    "c": 0.11829,
    "h": 307.5
  },
  "luminance": 0.01972
}

Semantic roles & 50–950 ramp

primary
#3A1156
secondary
#598F34
accent
#EA3E84
background
#F7F4F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A1156

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

Preview Lab → · Contrast checker → · Palette generator →

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