#3A123D#3A123D

#3A123D is a dark, moderate purple. Relative luminance 0.017; OKLCH L 26.7% C 0.089 H 324.9°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#3A123D
RGBrgb(58, 18, 61)
HSLhsl(296, 54%, 15%)
HSVhsv(296, 70%, 24%)
CMYKcmyk(4.9%, 70.5%, 0%, 76.1%)
CIE-LABlab(13.65, 26.70, -18.49)
CIE-LCHlch(13.65, 32.48, 325.31°)
OKLaboklab(26.7% 0.0728 -0.0512)
OKLCHoklch(26.7% 0.089 324.9)
XYZxyz(2.8035, 1.6692, 4.5885)
Luminance0.0167 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A123D #153D12
analogous
#24123D #3A123D #3D122A
triadic
#3A123D #3D3A12 #123D3A
tetradic
#3A123D #3D2412 #153D12 #122A3D
square
#3A123D #3D2412 #153D12 #122A3D
split-complementary
#3A123D #2A3D12 #123D24
monochromatic
#160718 #160718 #3A123D #67206C #942E9C

Accessibility & contrast

On white

15.74
#3A123D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#3A123D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A123D
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A123D#FFFFFF#000000##FFFFFF
##3A123D1.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B203E
Deuteranopia (green-blind)
#1A253C
Tritanopia (blue-blind)
#3B1825
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #3a123d;
/* rgb */ color: rgb(58, 18, 61);
/* oklch */ color: oklch(26.7% 0.089 324.9);
Tailwind
colors: {
  custom: {
    50: '#725372',
    500: '#3a123d',
    950: '#000000',
  },
}
SCSS
$custom: #3a123d;
$custom-light: #725372;
$custom-dark: #000000;
JSON
{
  "hex": "#3a123d",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 61
  },
  "hsl": {
    "h": 295.814,
    "s": 54.43,
    "l": 15.49
  },
  "oklch": {
    "l": 0.26695,
    "c": 0.08902,
    "h": 324.9
  },
  "luminance": 0.01669
}

Semantic roles & 50–950 ramp

primary
#3A123D
secondary
#397635
accent
#DE4A54
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#080208
muted
#7B787B

Preview Lab

Preview with #3A123D

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

Preview Lab → · Contrast checker → · Palette generator →

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