#3A124E#3A124E

#3A124E is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.0% C 0.108 H 312.0°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#3A124E
RGBrgb(58, 18, 78)
HSLhsl(280, 63%, 19%)
HSVhsv(280, 77%, 31%)
CMYKcmyk(25.6%, 76.9%, 0%, 69.4%)
CIE-LABlab(14.86, 30.70, -28.39)
CIE-LCHlch(14.86, 41.82, 317.24°)
OKLaboklab(27.96% 0.0722 -0.0802)
OKLCHoklch(27.96% 0.108 312)
XYZxyz(3.3361, 1.8823, 7.3938)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A124E #264E12
analogous
#1C124E #3A124E #4E1244
triadic
#3A124E #4E3A12 #124E3A
tetradic
#3A124E #4E1C12 #264E12 #12444E
square
#3A124E #4E1C12 #264E12 #12444E
split-complementary
#3A124E #444E12 #124E1C
monochromatic
#120619 #15071C #3A124E #5F1D80 #8429B1

Accessibility & contrast

On white

15.26
#3A124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#3A124E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A124E
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A124E#FFFFFF#000000##FFFFFF
##3A124E1.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002350
Deuteranopia (green-blind)
#0B264D
Tritanopia (blue-blind)
#381F2E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #3a124e;
/* rgb */ color: rgb(58, 18, 78);
/* oklch */ color: oklch(28.0% 0.108 312.0);
Tailwind
colors: {
  custom: {
    50: '#735480',
    500: '#3a124e',
    950: '#000000',
  },
}
SCSS
$custom: #3a124e;
$custom-light: #735480;
$custom-dark: #000000;
JSON
{
  "hex": "#3a124e",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 280,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.27955,
    "c": 0.1079,
    "h": 312
  },
  "luminance": 0.01882
}

Semantic roles & 50–950 ramp

primary
#3A124E
secondary
#508735
accent
#E64279
background
#F7F4F7
surface
#EDE8EE
border
#C8C4C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3A124E

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

Preview Lab → · Contrast checker → · Palette generator →

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