#3D174B#3D174B

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

Color values

HEX#3D174B
RGBrgb(61, 23, 75)
HSLhsl(284, 53%, 19%)
HSVhsv(284, 69%, 29%)
CMYKcmyk(18.7%, 69.3%, 0%, 70.6%)
CIE-LABlab(16.07, 28.13, -24.36)
CIE-LCHlch(16.07, 37.21, 319.10°)
OKLaboklab(28.86% 0.0702 -0.0683)
OKLCHoklch(28.86% 0.098 315.8)
XYZxyz(3.5007, 2.1130, 6.8787)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D174B #254B17
analogous
#23174B #3D174B #4B173F
triadic
#3D174B #4B3D17 #174B3D
tetradic
#3D174B #4B2317 #254B17 #173F4B
square
#3D174B #4B2317 #254B17 #173F4B
split-complementary
#3D174B #3F4B17 #174B23
monochromatic
#130717 #17091C #3D174B #63257A #8934A9

Accessibility & contrast

On white

14.76
#3D174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#3D174B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D174B
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D174B#FFFFFF#000000##FFFFFF
##3D174B1.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06264D
Deuteranopia (green-blind)
#17294A
Tritanopia (blue-blind)
#3C202E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3d174b;
/* rgb */ color: rgb(61, 23, 75);
/* oklch */ color: oklch(28.9% 0.098 315.8);
Tailwind
colors: {
  custom: {
    50: '#74577d',
    500: '#3d174b',
    950: '#000000',
  },
}
SCSS
$custom: #3d174b;
$custom-light: #74577d;
$custom-dark: #000000;
JSON
{
  "hex": "#3d174b",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 283.846,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28858,
    "c": 0.09795,
    "h": 315.8
  },
  "luminance": 0.02113
}

Semantic roles & 50–950 ramp

primary
#3D174B
secondary
#4F823C
accent
#DC4B72
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3D174B

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

Preview Lab → · Contrast checker → · Palette generator →

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