#3A1352#3A1352

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

Color values

HEX#3A1352
RGBrgb(58, 19, 82)
HSLhsl(277, 62%, 20%)
HSVhsv(277, 77%, 32%)
CMYKcmyk(29.3%, 76.8%, 0%, 67.8%)
CIE-LABlab(15.35, 31.21, -30.33)
CIE-LCHlch(15.35, 43.52, 315.83°)
OKLaboklab(28.41% 0.0704 -0.0859)
OKLCHoklch(28.41% 0.111 309.4)
XYZxyz(3.5005, 1.9745, 8.1777)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1352 #2B5213
analogous
#1B1352 #3A1352 #52134B
triadic
#3A1352 #523A13 #13523A
tetradic
#3A1352 #521B13 #2B5213 #134B52
square
#3A1352 #521B13 #2B5213 #134B52
split-complementary
#3A1352 #4B5213 #13521B
monochromatic
#120619 #170720 #3A1352 #5D1F84 #802AB5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A1352#FFFFFF#000000##FFFFFF
##3A13521.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)
#002554
Deuteranopia (green-blind)
#062751
Tritanopia (blue-blind)
#362131
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3a1352;
/* rgb */ color: rgb(58, 19, 82);
/* oklch */ color: oklch(28.4% 0.111 309.4);
Tailwind
colors: {
  custom: {
    50: '#735583',
    500: '#3a1352',
    950: '#000000',
  },
}
SCSS
$custom: #3a1352;
$custom-light: #735583;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1352",
  "rgb": {
    "r": 58,
    "g": 19,
    "b": 82
  },
  "hsl": {
    "h": 277.143,
    "s": 62.376,
    "l": 19.804
  },
  "oklch": {
    "l": 0.28409,
    "c": 0.11105,
    "h": 309.4
  },
  "luminance": 0.01974
}

Semantic roles & 50–950 ramp

primary
#3A1352
secondary
#568A36
accent
#E54280
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3A1352

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

Preview Lab → · Contrast checker → · Palette generator →

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