#3A123E#3A123E

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

Color values

HEX#3A123E
RGBrgb(58, 18, 62)
HSLhsl(295, 55%, 16%)
HSVhsv(295, 71%, 24%)
CMYKcmyk(6.5%, 71%, 0%, 75.7%)
CIE-LABlab(13.71, 26.92, -19.09)
CIE-LCHlch(13.71, 33.01, 324.66°)
OKLaboklab(26.76% 0.0729 -0.053)
OKLCHoklch(26.76% 0.09 324)
XYZxyz(2.8307, 1.6801, 4.7317)
Luminance0.0168 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A123E #163E12
analogous
#24123E #3A123E #3E122C
triadic
#3A123E #3E3A12 #123E3A
tetradic
#3A123E #3E2412 #163E12 #122C3E
square
#3A123E #3E2412 #163E12 #122C3E
split-complementary
#3A123E #2C3E12 #123E24
monochromatic
#160718 #160718 #3A123E #66206D #932E9D

Accessibility & contrast

On white

15.72
#3A123E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A123E
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A123E#FFFFFF#000000##FFFFFF
##3A123E1.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A203F
Deuteranopia (green-blind)
#19253D
Tritanopia (blue-blind)
#3B1826
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #3a123e;
/* rgb */ color: rgb(58, 18, 62);
/* oklch */ color: oklch(26.8% 0.090 324.0);
Tailwind
colors: {
  custom: {
    50: '#725373',
    500: '#3a123e',
    950: '#000000',
  },
}
SCSS
$custom: #3a123e;
$custom-light: #725373;
$custom-dark: #000000;
JSON
{
  "hex": "#3a123e",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 62
  },
  "hsl": {
    "h": 294.545,
    "s": 55,
    "l": 15.686
  },
  "oklch": {
    "l": 0.26762,
    "c": 0.09009,
    "h": 324
  },
  "luminance": 0.0168
}

Semantic roles & 50–950 ramp

primary
#3A123E
secondary
#3B7735
accent
#DE4957
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3A123E

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

Preview Lab → · Contrast checker → · Palette generator →

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