#3A124A#3A124A

#3A124A is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.6% C 0.103 H 314.6°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#3A124A
RGBrgb(58, 18, 74)
HSLhsl(283, 61%, 18%)
HSVhsv(283, 76%, 29%)
CMYKcmyk(21.6%, 75.7%, 0%, 71%)
CIE-LABlab(14.55, 29.72, -26.13)
CIE-LCHlch(14.55, 39.58, 318.67°)
OKLaboklab(27.64% 0.0726 -0.0736)
OKLCHoklch(27.64% 0.103 314.6)
XYZxyz(3.1971, 1.8267, 6.6614)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A124A #224A12
analogous
#1E124A #3A124A #4A123E
triadic
#3A124A #4A3A12 #124A3A
tetradic
#3A124A #4A1E12 #224A12 #123E4A
square
#3A124A #4A1E12 #224A12 #123E4A
split-complementary
#3A124A #3E4A12 #124A1E
monochromatic
#130619 #130619 #3A124A #611E7B #872AAC

Accessibility & contrast

On white

15.38
#3A124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A124A
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A124A#FFFFFF#000000##FFFFFF
##3A124A1.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224C
Deuteranopia (green-blind)
#102649
Tritanopia (blue-blind)
#391D2C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #3a124a;
/* rgb */ color: rgb(58, 18, 74);
/* oklch */ color: oklch(27.6% 0.103 314.6);
Tailwind
colors: {
  custom: {
    50: '#72547d',
    500: '#3a124a',
    950: '#000000',
  },
}
SCSS
$custom: #3a124a;
$custom-light: #72547d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a124a",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 282.857,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.27638,
    "c": 0.10337,
    "h": 314.6
  },
  "luminance": 0.01827
}

Semantic roles & 50–950 ramp

primary
#3A124A
secondary
#4B8335
accent
#E44472
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#080309
muted
#7B787B

Preview Lab

Preview with #3A124A

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

Preview Lab → · Contrast checker → · Palette generator →

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