#3D173B#3D173B

#3D173B is a dark, moderate purple. Relative luminance 0.019; OKLCH L 27.8% C 0.080 H 329.5°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#3D173B
RGBrgb(61, 23, 59)
HSLhsl(303, 45%, 16%)
HSVhsv(303, 62%, 24%)
CMYKcmyk(0%, 62.3%, 3.3%, 76.1%)
CIE-LABlab(15.07, 24.47, -14.80)
CIE-LCHlch(15.07, 28.59, 328.83°)
OKLaboklab(27.8% 0.0689 -0.0406)
OKLCHoklch(27.8% 0.08 329.5)
XYZxyz(3.0203, 1.9208, 4.3485)
Luminance0.0192 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D173B #173D19
analogous
#2C173D #3D173B #3D1728
triadic
#3D173B #3B3D17 #173B3D
tetradic
#3D173B #3D2C17 #173D19 #17283D
square
#3D173B #3D2C17 #173D19 #17283D
split-complementary
#3D173B #283D17 #173D2C
monochromatic
#160815 #160815 #3D173B #692866 #963991

Accessibility & contrast

On white

15.17
#3D173B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#3D173B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D173B
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D173B#FFFFFF#000000##FFFFFF
##3D173B1.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14233C
Deuteranopia (green-blind)
#20283A
Tritanopia (blue-blind)
#3F1B26
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3d173b;
/* rgb */ color: rgb(61, 23, 59);
/* oklch */ color: oklch(27.8% 0.080 329.5);
Tailwind
colors: {
  custom: {
    50: '#745671',
    500: '#3d173b',
    950: '#000000',
  },
}
SCSS
$custom: #3d173b;
$custom-light: #745671;
$custom-dark: #000000;
JSON
{
  "hex": "#3d173b",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 303.158,
    "s": 45.238,
    "l": 16.471
  },
  "oklch": {
    "l": 0.278,
    "c": 0.07997,
    "h": 329.5
  },
  "luminance": 0.01921
}

Semantic roles & 50–950 ramp

primary
#3D173B
secondary
#3C743F
accent
#D55A53
background
#F7F5F6
surface
#EDE9EC
border
#C8C5C7
text
#080307
muted
#7B787A

Preview Lab

Preview with #3D173B

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

Preview Lab → · Contrast checker → · Palette generator →

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