#3A123F#3A123F

#3A123F is a dark, moderate purple. Relative luminance 0.017; OKLCH L 26.8% C 0.091 H 323.1°. Best body text is #FFFFFF at 15.69:1 contrast (WCAG AA passes).

Color values

HEX#3A123F
RGBrgb(58, 18, 63)
HSLhsl(293, 56%, 16%)
HSVhsv(293, 71%, 25%)
CMYKcmyk(7.9%, 71.4%, 0%, 75.3%)
CIE-LABlab(13.78, 27.14, -19.69)
CIE-LCHlch(13.78, 33.54, 324.04°)
OKLaboklab(26.83% 0.0729 -0.0547)
OKLCHoklch(26.83% 0.091 323.1)
XYZxyz(2.8583, 1.6912, 4.8775)
Luminance0.0169 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A123F #173F12
analogous
#23123F #3A123F #3F122D
triadic
#3A123F #3F3A12 #123F3A
tetradic
#3A123F #3F2312 #173F12 #122D3F
square
#3A123F #3F2312 #173F12 #122D3F
split-complementary
#3A123F #2D3F12 #123F23
monochromatic
#160718 #160718 #3A123F #66206F #922D9E

Accessibility & contrast

On white

15.69
#3A123F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#3A123F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A123F
15.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A123F#FFFFFF#000000##FFFFFF
##3A123F1.0015.691.3415.69
#FFFFFF15.691.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092040
Deuteranopia (green-blind)
#18253E
Tritanopia (blue-blind)
#3B1926
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #3a123f;
/* rgb */ color: rgb(58, 18, 63);
/* oklch */ color: oklch(26.8% 0.091 323.1);
Tailwind
colors: {
  custom: {
    50: '#725374',
    500: '#3a123f',
    950: '#000000',
  },
}
SCSS
$custom: #3a123f;
$custom-light: #725374;
$custom-dark: #000000;
JSON
{
  "hex": "#3a123f",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 63
  },
  "hsl": {
    "h": 293.333,
    "s": 55.556,
    "l": 15.882
  },
  "oklch": {
    "l": 0.26831,
    "c": 0.09116,
    "h": 323.1
  },
  "luminance": 0.01691
}

Semantic roles & 50–950 ramp

primary
#3A123F
secondary
#3C7835
accent
#DF495A
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3A123F

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

Preview Lab → · Contrast checker → · Palette generator →

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