#3D173E#3D173E

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

Color values

HEX#3D173E
RGBrgb(61, 23, 62)
HSLhsl(298, 46%, 17%)
HSVhsv(298, 63%, 24%)
CMYKcmyk(1.6%, 62.9%, 0%, 75.7%)
CIE-LABlab(15.24, 25.11, -16.65)
CIE-LCHlch(15.24, 30.13, 326.46°)
OKLaboklab(27.98% 0.0694 -0.0459)
OKLCHoklch(27.98% 0.083 326.5)
XYZxyz(3.1003, 1.9529, 4.7701)
Luminance0.0195 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D173E #183E17
analogous
#2A173E #3D173E #3E172C
triadic
#3D173E #3E3D17 #173E3D
tetradic
#3D173E #3E2A17 #183E17 #172C3E
square
#3D173E #3E2A17 #183E17 #172C3E
split-complementary
#3D173E #2C3E17 #173E2A
monochromatic
#160816 #160816 #3D173E #69286B #953897

Accessibility & contrast

On white

15.10
#3D173E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D173E
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D173E#FFFFFF#000000##FFFFFF
##3D173E1.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12233F
Deuteranopia (green-blind)
#1F283D
Tritanopia (blue-blind)
#3F1C28
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3d173e;
/* rgb */ color: rgb(61, 23, 62);
/* oklch */ color: oklch(28.0% 0.083 326.5);
Tailwind
colors: {
  custom: {
    50: '#745673',
    500: '#3d173e',
    950: '#000000',
  },
}
SCSS
$custom: #3d173e;
$custom-light: #745673;
$custom-dark: #000000;
JSON
{
  "hex": "#3d173e",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 62
  },
  "hsl": {
    "h": 298.462,
    "s": 45.882,
    "l": 16.667
  },
  "oklch": {
    "l": 0.27982,
    "c": 0.08318,
    "h": 326.5
  },
  "luminance": 0.01953
}

Semantic roles & 50–950 ramp

primary
#3D173E
secondary
#3D753C
accent
#D65256
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#080308
muted
#7B787B

Preview Lab

Preview with #3D173E

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

Preview Lab → · Contrast checker → · Palette generator →

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