#3A184A#3A184A

#3A184A is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.5% C 0.094 H 313.4°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#3A184A
RGBrgb(58, 24, 74)
HSLhsl(281, 51%, 19%)
HSVhsv(281, 68%, 29%)
CMYKcmyk(21.6%, 67.6%, 0%, 71%)
CIE-LABlab(15.73, 26.45, -24.24)
CIE-LCHlch(15.73, 35.88, 317.50°)
OKLaboklab(28.49% 0.0643 -0.068)
OKLCHoklch(28.49% 0.094 313.4)
XYZxyz(3.3074, 2.0473, 6.6982)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A184A #284A18
analogous
#21184A #3A184A #4A1841
triadic
#3A184A #4A3A18 #184A3A
tetradic
#3A184A #4A2118 #284A18 #18414A
square
#3A184A #4A2118 #284A18 #18414A
split-complementary
#3A184A #414A18 #184A21
monochromatic
#120717 #16091C #3A184A #5E2778 #8236A6

Accessibility & contrast

On white

14.90
#3A184A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#3A184A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A184A
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A184A#FFFFFF#000000##FFFFFF
##3A184A1.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07254C
Deuteranopia (green-blind)
#162849
Tritanopia (blue-blind)
#38212E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a184a;
/* rgb */ color: rgb(58, 24, 74);
/* oklch */ color: oklch(28.5% 0.094 313.4);
Tailwind
colors: {
  custom: {
    50: '#72577d',
    500: '#3a184a',
    950: '#000000',
  },
}
SCSS
$custom: #3a184a;
$custom-light: #72577d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a184a",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 74
  },
  "hsl": {
    "h": 280.8,
    "s": 51.02,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28492,
    "c": 0.09365,
    "h": 313.4
  },
  "luminance": 0.02047
}

Semantic roles & 50–950 ramp

primary
#3A184A
secondary
#53813D
accent
#DA4D7A
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#080309
muted
#7B787B

Preview Lab

Preview with #3A184A

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

Preview Lab → · Contrast checker → · Palette generator →

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