#3E173B#3E173B

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

Color values

HEX#3E173B
RGBrgb(62, 23, 59)
HSLhsl(305, 46%, 17%)
HSVhsv(305, 63%, 24%)
CMYKcmyk(0%, 62.9%, 4.8%, 75.7%)
CIE-LABlab(15.24, 24.80, -14.52)
CIE-LCHlch(15.24, 28.74, 329.65°)
OKLaboklab(27.96% 0.0703 -0.0397)
OKLCHoklch(27.96% 0.081 330.5)
XYZxyz(3.0824, 1.9529, 4.3514)
Luminance0.0195 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E173B #173E1A
analogous
#2E173E #3E173B #3E1728
triadic
#3E173B #3B3E17 #173B3E
tetradic
#3E173B #3E2E17 #173E1A #17283E
square
#3E173B #3E2E17 #173E1A #17283E
split-complementary
#3E173B #283E17 #173E2E
monochromatic
#160815 #160815 #3E173B #6B2865 #973890

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3E173B#FFFFFF#000000##FFFFFF
##3E173B1.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)
#15233C
Deuteranopia (green-blind)
#21283A
Tritanopia (blue-blind)
#401B26
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3e173b;
/* rgb */ color: rgb(62, 23, 59);
/* oklch */ color: oklch(28.0% 0.081 330.5);
Tailwind
colors: {
  custom: {
    50: '#755671',
    500: '#3e173b',
    950: '#000000',
  },
}
SCSS
$custom: #3e173b;
$custom-light: #755671;
$custom-dark: #000000;
JSON
{
  "hex": "#3e173b",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 304.615,
    "s": 45.882,
    "l": 16.667
  },
  "oklch": {
    "l": 0.27962,
    "c": 0.08074,
    "h": 330.5
  },
  "luminance": 0.01953
}

Semantic roles & 50–950 ramp

primary
#3E173B
secondary
#3C7540
accent
#D65C52
background
#F7F5F6
surface
#EDE9EC
border
#C8C5C7
text
#080307
muted
#7B787A

Preview Lab

Preview with #3E173B

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

Preview Lab → · Contrast checker → · Palette generator →

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