#3D174F#3D174F

#3D174F is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.2% C 0.103 H 313.1°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#3D174F
RGBrgb(61, 23, 79)
HSLhsl(281, 55%, 20%)
HSVhsv(281, 71%, 31%)
CMYKcmyk(22.8%, 70.9%, 0%, 69%)
CIE-LABlab(16.35, 29.11, -26.65)
CIE-LCHlch(16.35, 39.47, 317.53°)
OKLaboklab(29.15% 0.0701 -0.075)
OKLCHoklch(29.15% 0.103 313.1)
XYZxyz(3.6419, 2.1695, 7.6225)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D174F #294F17
analogous
#21174F #3D174F #4F1745
triadic
#3D174F #4F3D17 #174F3D
tetradic
#3D174F #4F2117 #294F17 #17454F
square
#3D174F #4F2117 #294F17 #17454F
split-complementary
#3D174F #454F17 #174F21
monochromatic
#120718 #180920 #3D174F #62257E #8633AE

Accessibility & contrast

On white

14.65
#3D174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D174F
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D174F#FFFFFF#000000##FFFFFF
##3D174F1.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002751
Deuteranopia (green-blind)
#13294E
Tritanopia (blue-blind)
#3B2230
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3d174f;
/* rgb */ color: rgb(61, 23, 79);
/* oklch */ color: oklch(29.2% 0.103 313.1);
Tailwind
colors: {
  custom: {
    50: '#755781',
    500: '#3d174f',
    950: '#000000',
  },
}
SCSS
$custom: #3d174f;
$custom-light: #755781;
$custom-dark: #000000;
JSON
{
  "hex": "#3d174f",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 280.714,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.29153,
    "c": 0.10265,
    "h": 313.1
  },
  "luminance": 0.02169
}

Semantic roles & 50–950 ramp

primary
#3D174F
secondary
#54863C
accent
#DE4A79
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3D174F

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

Preview Lab → · Contrast checker → · Palette generator →

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