#3A1256#3A1256

#3A1256 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.6% C 0.117 H 307.3°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#3A1256
RGBrgb(58, 18, 86)
HSLhsl(275, 65%, 20%)
HSVhsv(275, 79%, 34%)
CMYKcmyk(32.6%, 79.1%, 0%, 66.3%)
CIE-LABlab(15.51, 32.73, -32.79)
CIE-LCHlch(15.51, 46.33, 314.95°)
OKLaboklab(28.62% 0.0709 -0.0931)
OKLCHoklch(28.62% 0.117 307.3)
XYZxyz(3.6406, 2.0041, 8.9973)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1256 #2E5612
analogous
#181256 #3A1256 #561250
triadic
#3A1256 #563A12 #12563A
tetradic
#3A1256 #561812 #2E5612 #125056
square
#3A1256 #561812 #2E5612 #125056
split-complementary
#3A1256 #505612 #125618
monochromatic
#110519 #180723 #3A1256 #5C1D89 #7E27BB

Accessibility & contrast

On white

14.99
#3A1256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#3A1256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1256
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1256#FFFFFF#000000##FFFFFF
##3A12561.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1256;
/* rgb */ color: rgb(58, 18, 86);
/* oklch */ color: oklch(28.6% 0.117 307.3);
Tailwind
colors: {
  custom: {
    50: '#745486',
    500: '#3a1256',
    950: '#000000',
  },
}
SCSS
$custom: #3a1256;
$custom-light: #745486;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1256",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 275.294,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28624,
    "c": 0.117,
    "h": 307.3
  },
  "luminance": 0.02004
}

Semantic roles & 50–950 ramp

primary
#3A1256
secondary
#5A8F35
accent
#E83F85
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A1256

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

Preview Lab → · Contrast checker → · Palette generator →

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