#3A123C#3A123C

#3A123C is a dark, moderate purple. Relative luminance 0.017; OKLCH L 26.6% C 0.088 H 325.8°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#3A123C
RGBrgb(58, 18, 60)
HSLhsl(297, 54%, 15%)
HSVhsv(297, 70%, 24%)
CMYKcmyk(3.3%, 70%, 0%, 76.5%)
CIE-LABlab(13.58, 26.48, -17.88)
CIE-LCHlch(13.58, 31.95, 325.98°)
OKLaboklab(26.63% 0.0727 -0.0495)
OKLCHoklch(26.63% 0.088 325.8)
XYZxyz(2.7768, 1.6586, 4.4480)
Luminance0.0166 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A123C #143C12
analogous
#25123C #3A123C #3C1229
triadic
#3A123C #3C3A12 #123C3A
tetradic
#3A123C #3C2512 #143C12 #12293C
square
#3A123C #3C2512 #143C12 #12293C
split-complementary
#3A123C #293C12 #123C25
monochromatic
#170718 #170718 #3A123C #68206B #952E9A

Accessibility & contrast

On white

15.77
#3A123C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A123C
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A123C#FFFFFF#000000##FFFFFF
##3A123C1.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C203D
Deuteranopia (green-blind)
#1A243B
Tritanopia (blue-blind)
#3C1825
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #3a123c;
/* rgb */ color: rgb(58, 18, 60);
/* oklch */ color: oklch(26.6% 0.088 325.8);
Tailwind
colors: {
  custom: {
    50: '#725372',
    500: '#3a123c',
    950: '#000000',
  },
}
SCSS
$custom: #3a123c;
$custom-light: #725372;
$custom-dark: #000000;
JSON
{
  "hex": "#3a123c",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 60
  },
  "hsl": {
    "h": 297.143,
    "s": 53.846,
    "l": 15.294
  },
  "oklch": {
    "l": 0.26628,
    "c": 0.08795,
    "h": 325.8
  },
  "luminance": 0.01658
}

Semantic roles & 50–950 ramp

primary
#3A123C
secondary
#387535
accent
#DD4B52
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#080208
muted
#7B787B

Preview Lab

Preview with #3A123C

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

Preview Lab → · Contrast checker → · Palette generator →

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