#3A173E#3A173E

#3A173E is a dark, moderate purple. Relative luminance 0.019; OKLCH L 27.5% C 0.081 H 323.4°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#3A173E
RGBrgb(58, 23, 62)
HSLhsl(294, 46%, 17%)
HSVhsv(294, 63%, 24%)
CMYKcmyk(6.5%, 62.9%, 0%, 75.7%)
CIE-LABlab(14.74, 24.13, -17.47)
CIE-LCHlch(14.74, 29.79, 324.09°)
OKLaboklab(27.51% 0.0652 -0.0483)
OKLCHoklch(27.51% 0.081 323.4)
XYZxyz(2.9207, 1.8603, 4.7617)
Luminance0.0186 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A173E #1B3E17
analogous
#27173E #3A173E #3E172F
triadic
#3A173E #3E3A17 #173E3A
tetradic
#3A173E #3E2717 #1B3E17 #172F3E
square
#3A173E #3E2717 #1B3E17 #172F3E
split-complementary
#3A173E #2F3E17 #173E27
monochromatic
#150816 #150816 #3A173E #64286B #8E3897

Accessibility & contrast

On white

15.31
#3A173E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A173E
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A173E#FFFFFF#000000##FFFFFF
##3A173E1.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11223F
Deuteranopia (green-blind)
#1C273D
Tritanopia (blue-blind)
#3B1C28
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #3a173e;
/* rgb */ color: rgb(58, 23, 62);
/* oklch */ color: oklch(27.5% 0.081 323.4);
Tailwind
colors: {
  custom: {
    50: '#715673',
    500: '#3a173e',
    950: '#000000',
  },
}
SCSS
$custom: #3a173e;
$custom-light: #715673;
$custom-dark: #000000;
JSON
{
  "hex": "#3a173e",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 62
  },
  "hsl": {
    "h": 293.846,
    "s": 45.882,
    "l": 16.667
  },
  "oklch": {
    "l": 0.27511,
    "c": 0.08113,
    "h": 323.4
  },
  "luminance": 0.0186
}

Semantic roles & 50–950 ramp

primary
#3A173E
secondary
#42753C
accent
#D65260
background
#F6F5F7
surface
#ECE9ED
border
#C7C5C8
text
#080308
muted
#7B787B

Preview Lab

Preview with #3A173E

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

Preview Lab → · Contrast checker → · Palette generator →

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