#3A113B#3A113B

#3A113B is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.4% C 0.089 H 326.8°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#3A113B
RGBrgb(58, 17, 59)
HSLhsl(299, 55%, 15%)
HSVhsv(299, 71%, 23%)
CMYKcmyk(1.7%, 71.2%, 0%, 76.9%)
CIE-LABlab(13.33, 26.79, -17.57)
CIE-LCHlch(13.33, 32.04, 326.75°)
OKLaboklab(26.42% 0.0741 -0.0486)
OKLCHoklch(26.42% 0.089 326.8)
XYZxyz(2.7347, 1.6164, 4.3048)
Luminance0.0162 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A113B #123B11
analogous
#25113B #3A113B #3B1127
triadic
#3A113B #3B3A11 #113B3A
tetradic
#3A113B #3B2511 #123B11 #11273B
square
#3A113B #3B2511 #123B11 #11273B
split-complementary
#3A113B #273B11 #113B25
monochromatic
#170718 #170718 #3A113B #691F6B #972C9A

Accessibility & contrast

On white

15.87
#3A113B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#3A113B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A113B
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A113B#FFFFFF#000000##FFFFFF
##3A113B1.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1F3C
Deuteranopia (green-blind)
#1A243A
Tritanopia (blue-blind)
#3C1724
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #3a113b;
/* rgb */ color: rgb(58, 17, 59);
/* oklch */ color: oklch(26.4% 0.089 326.8);
Tailwind
colors: {
  custom: {
    50: '#725271',
    500: '#3a113b',
    950: '#000000',
  },
}
SCSS
$custom: #3a113b;
$custom-light: #725271;
$custom-dark: #000000;
JSON
{
  "hex": "#3a113b",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 59
  },
  "hsl": {
    "h": 298.571,
    "s": 55.263,
    "l": 14.902
  },
  "oklch": {
    "l": 0.26424,
    "c": 0.0886,
    "h": 326.8
  },
  "luminance": 0.01616
}

Semantic roles & 50–950 ramp

primary
#3A113B
secondary
#357433
accent
#DF494D
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#080207
muted
#7B787A

Preview Lab

Preview with #3A113B

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

Preview Lab → · Contrast checker → · Palette generator →

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