#3A164B#3A164B

#3A164B is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.3% C 0.098 H 313.2°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#3A164B
RGBrgb(58, 22, 75)
HSLhsl(281, 55%, 19%)
HSVhsv(281, 71%, 29%)
CMYKcmyk(22.7%, 70.7%, 0%, 70.6%)
CIE-LABlab(15.39, 27.84, -25.48)
CIE-LCHlch(15.39, 37.74, 317.54°)
OKLaboklab(28.27% 0.0672 -0.0717)
OKLCHoklch(28.27% 0.098 313.2)
XYZxyz(3.3016, 1.9815, 6.8638)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A164B #274B16
analogous
#20164B #3A164B #4B1642
triadic
#3A164B #4B3A16 #164B3A
tetradic
#3A164B #4B2016 #274B16 #16424B
square
#3A164B #4B2016 #274B16 #16424B
split-complementary
#3A164B #424B16 #164B20
monochromatic
#120718 #15081C #3A164B #5F247A #8332AA

Accessibility & contrast

On white

15.04
#3A164B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A164B
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A164B#FFFFFF#000000##FFFFFF
##3A164B1.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02254D
Deuteranopia (green-blind)
#13274A
Tritanopia (blue-blind)
#38202E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3a164b;
/* rgb */ color: rgb(58, 22, 75);
/* oklch */ color: oklch(28.3% 0.098 313.2);
Tailwind
colors: {
  custom: {
    50: '#72567d',
    500: '#3a164b',
    950: '#000000',
  },
}
SCSS
$custom: #3a164b;
$custom-light: #72567d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a164b",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 75
  },
  "hsl": {
    "h": 280.755,
    "s": 54.639,
    "l": 19.02
  },
  "oklch": {
    "l": 0.28265,
    "c": 0.09823,
    "h": 313.2
  },
  "luminance": 0.01981
}

Semantic roles & 50–950 ramp

primary
#3A164B
secondary
#51833A
accent
#DE4A79
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3A164B

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

Preview Lab → · Contrast checker → · Palette generator →

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