#3B173E#3B173E

#3B173E is a dark, moderate purple. Relative luminance 0.019; OKLCH L 27.7% C 0.082 H 324.5°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#3B173E
RGBrgb(59, 23, 62)
HSLhsl(295, 46%, 17%)
HSVhsv(295, 63%, 24%)
CMYKcmyk(4.8%, 62.9%, 0%, 75.7%)
CIE-LABlab(14.90, 24.45, -17.20)
CIE-LCHlch(14.90, 29.90, 324.88°)
OKLaboklab(27.67% 0.0666 -0.0475)
OKLCHoklch(27.67% 0.082 324.5)
XYZxyz(2.9795, 1.8906, 4.7645)
Luminance0.0189 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B173E #1A3E17
analogous
#28173E #3B173E #3E172E
triadic
#3B173E #3E3B17 #173E3B
tetradic
#3B173E #3E2817 #1A3E17 #172E3E
square
#3B173E #3E2817 #1A3E17 #172E3E
split-complementary
#3B173E #2E3E17 #173E28
monochromatic
#150816 #150816 #3B173E #65286B #903897

Accessibility & contrast

On white

15.24
#3B173E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B173E
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B173E#FFFFFF#000000##FFFFFF
##3B173E1.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11233F
Deuteranopia (green-blind)
#1D273D
Tritanopia (blue-blind)
#3C1C28
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #3b173e;
/* rgb */ color: rgb(59, 23, 62);
/* oklch */ color: oklch(27.7% 0.082 324.5);
Tailwind
colors: {
  custom: {
    50: '#725673',
    500: '#3b173e',
    950: '#000000',
  },
}
SCSS
$custom: #3b173e;
$custom-light: #725673;
$custom-dark: #000000;
JSON
{
  "hex": "#3b173e",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 62
  },
  "hsl": {
    "h": 295.385,
    "s": 45.882,
    "l": 16.667
  },
  "oklch": {
    "l": 0.27667,
    "c": 0.0818,
    "h": 324.5
  },
  "luminance": 0.0189
}

Semantic roles & 50–950 ramp

primary
#3B173E
secondary
#40753C
accent
#D6525C
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#080308
muted
#7B787B

Preview Lab

Preview with #3B173E

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

Preview Lab → · Contrast checker → · Palette generator →

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