#3A124D#3A124D

#3A124D is a dark, moderate purple. Relative luminance 0.019; OKLCH L 27.9% C 0.107 H 312.6°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#3A124D
RGBrgb(58, 18, 77)
HSLhsl(281, 62%, 19%)
HSVhsv(281, 77%, 30%)
CMYKcmyk(24.7%, 76.6%, 0%, 69.8%)
CIE-LABlab(14.78, 30.45, -27.83)
CIE-LCHlch(14.78, 41.26, 317.58°)
OKLaboklab(27.88% 0.0723 -0.0785)
OKLCHoklch(27.88% 0.107 312.6)
XYZxyz(3.3005, 1.8681, 7.2064)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A124D #254D12
analogous
#1C124D #3A124D #4D1242
triadic
#3A124D #4D3A12 #124D3A
tetradic
#3A124D #4D1C12 #254D12 #12424D
square
#3A124D #4D1C12 #254D12 #12424D
split-complementary
#3A124D #424D12 #124D1C
monochromatic
#130619 #15061B #3A124D #5F1E7F #8529B0

Accessibility & contrast

On white

15.29
#3A124D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#3A124D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A124D
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A124D#FFFFFF#000000##FFFFFF
##3A124D1.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234F
Deuteranopia (green-blind)
#0C264C
Tritanopia (blue-blind)
#381E2E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #3a124d;
/* rgb */ color: rgb(58, 18, 77);
/* oklch */ color: oklch(27.9% 0.107 312.6);
Tailwind
colors: {
  custom: {
    50: '#73547f',
    500: '#3a124d',
    950: '#000000',
  },
}
SCSS
$custom: #3a124d;
$custom-light: #73547f;
$custom-dark: #000000;
JSON
{
  "hex": "#3a124d",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 77
  },
  "hsl": {
    "h": 280.678,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.27875,
    "c": 0.10676,
    "h": 312.6
  },
  "luminance": 0.01868
}

Semantic roles & 50–950 ramp

primary
#3A124D
secondary
#4F8635
accent
#E54377
background
#F7F4F7
surface
#EDE8EE
border
#C8C4C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3A124D

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

Preview Lab → · Contrast checker → · Palette generator →

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