#3D174C#3D174C

#3D174C is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.9% C 0.099 H 315.1°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#3D174C
RGBrgb(61, 23, 76)
HSLhsl(283, 54%, 19%)
HSVhsv(283, 70%, 30%)
CMYKcmyk(19.7%, 69.7%, 0%, 70.2%)
CIE-LABlab(16.14, 28.37, -24.94)
CIE-LCHlch(16.14, 37.77, 318.69°)
OKLaboklab(28.93% 0.0702 -0.07)
OKLCHoklch(28.93% 0.099 315.1)
XYZxyz(3.5352, 2.1268, 7.0604)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D174C #264C17
analogous
#23174C #3D174C #4C1741
triadic
#3D174C #4C3D17 #174C3D
tetradic
#3D174C #4C2317 #264C17 #17414C
square
#3D174C #4C2317 #264C17 #17414C
split-complementary
#3D174C #414C17 #174C23
monochromatic
#130717 #17091D #3D174C #63257B #8833AA

Accessibility & contrast

On white

14.73
#3D174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#3D174C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D174C
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D174C#FFFFFF#000000##FFFFFF
##3D174C1.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04264E
Deuteranopia (green-blind)
#16294B
Tritanopia (blue-blind)
#3C212F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3d174c;
/* rgb */ color: rgb(61, 23, 76);
/* oklch */ color: oklch(28.9% 0.099 315.1);
Tailwind
colors: {
  custom: {
    50: '#75577e',
    500: '#3d174c',
    950: '#000000',
  },
}
SCSS
$custom: #3d174c;
$custom-light: #75577e;
$custom-dark: #000000;
JSON
{
  "hex": "#3d174c",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 283.019,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.2893,
    "c": 0.09912,
    "h": 315.1
  },
  "luminance": 0.02127
}

Semantic roles & 50–950 ramp

primary
#3D174C
secondary
#50833C
accent
#DD4B74
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3D174C

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

Preview Lab → · Contrast checker → · Palette generator →

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