#3D173F#3D173F

#3D173F is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.0% C 0.084 H 325.6°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#3D173F
RGBrgb(61, 23, 63)
HSLhsl(297, 47%, 17%)
HSVhsv(297, 63%, 25%)
CMYKcmyk(3.2%, 63.5%, 0%, 75.3%)
CIE-LABlab(15.30, 25.33, -17.26)
CIE-LCHlch(15.30, 30.65, 325.74°)
OKLaboklab(28.05% 0.0695 -0.0476)
OKLCHoklch(28.05% 0.084 325.6)
XYZxyz(3.1280, 1.9639, 4.9160)
Luminance0.0196 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D173F #193F17
analogous
#29173F #3D173F #3F172D
triadic
#3D173F #3F3D17 #173F3D
tetradic
#3D173F #3F2917 #193F17 #172D3F
square
#3D173F #3F2917 #193F17 #172D3F
split-complementary
#3D173F #2D3F17 #173F29
monochromatic
#160816 #160816 #3D173F #68276C #943899

Accessibility & contrast

On white

15.08
#3D173F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#3D173F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D173F
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D173F#FFFFFF#000000##FFFFFF
##3D173F1.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122340
Deuteranopia (green-blind)
#1E283E
Tritanopia (blue-blind)
#3F1C28
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3d173f;
/* rgb */ color: rgb(61, 23, 63);
/* oklch */ color: oklch(28.0% 0.084 325.6);
Tailwind
colors: {
  custom: {
    50: '#745674',
    500: '#3d173f',
    950: '#000000',
  },
}
SCSS
$custom: #3d173f;
$custom-light: #745674;
$custom-dark: #000000;
JSON
{
  "hex": "#3d173f",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 63
  },
  "hsl": {
    "h": 297,
    "s": 46.512,
    "l": 16.863
  },
  "oklch": {
    "l": 0.28045,
    "c": 0.08428,
    "h": 325.6
  },
  "luminance": 0.01964
}

Semantic roles & 50–950 ramp

primary
#3D173F
secondary
#3F763C
accent
#D65258
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#080308
muted
#7B787B

Preview Lab

Preview with #3D173F

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

Preview Lab → · Contrast checker → · Palette generator →

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