#3A1056#3A1056

#3A1056 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.4% C 0.120 H 307.6°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#3A1056
RGBrgb(58, 16, 86)
HSLhsl(276, 69%, 20%)
HSVhsv(276, 81%, 34%)
CMYKcmyk(32.6%, 81.4%, 0%, 66.3%)
CIE-LABlab(15.18, 33.67, -33.32)
CIE-LCHlch(15.18, 47.37, 315.30°)
OKLaboklab(28.39% 0.073 -0.0946)
OKLCHoklch(28.39% 0.12 307.6)
XYZxyz(3.6096, 1.9421, 8.9870)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1056 #2C5610
analogous
#171056 #3A1056 #56104F
triadic
#3A1056 #563A10 #10563A
tetradic
#3A1056 #561710 #2C5610 #104F56
square
#3A1056 #561710 #2C5610 #104F56
split-complementary
#3A1056 #4F5610 #105617
monochromatic
#11051A #170622 #3A1056 #5D1A8A #8023BD

Accessibility & contrast

On white

15.13
#3A1056 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1056
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1056#FFFFFF#000000##FFFFFF
##3A10561.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1056;
/* rgb */ color: rgb(58, 16, 86);
/* oklch */ color: oklch(28.4% 0.120 307.6);
Tailwind
colors: {
  custom: {
    50: '#745386',
    500: '#3a1056',
    950: '#000000',
  },
}
SCSS
$custom: #3a1056;
$custom-light: #745386;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1056",
  "rgb": {
    "r": 58,
    "g": 16,
    "b": 86
  },
  "hsl": {
    "h": 276,
    "s": 68.627,
    "l": 20
  },
  "oklch": {
    "l": 0.28392,
    "c": 0.11954,
    "h": 307.6
  },
  "luminance": 0.01942
}

Semantic roles & 50–950 ramp

primary
#3A1056
secondary
#588F32
accent
#EB3C82
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A1056

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

Preview Lab → · Contrast checker → · Palette generator →

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