#3E174B#3E174B

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

Color values

HEX#3E174B
RGBrgb(62, 23, 75)
HSLhsl(285, 53%, 19%)
HSVhsv(285, 69%, 29%)
CMYKcmyk(17.3%, 69.3%, 0%, 70.6%)
CIE-LABlab(16.23, 28.41, -24.10)
CIE-LCHlch(16.23, 37.25, 319.70°)
OKLaboklab(29.01% 0.0717 -0.0675)
OKLCHoklch(29.01% 0.098 316.7)
XYZxyz(3.5628, 2.1451, 6.8816)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E174B #244B17
analogous
#24174B #3E174B #4B173E
triadic
#3E174B #4B3E17 #174B3E
tetradic
#3E174B #4B2417 #244B17 #173E4B
square
#3E174B #4B2417 #244B17 #173E4B
split-complementary
#3E174B #3E4B17 #174B24
monochromatic
#130717 #17091C #3E174B #65257A #8B34A9

Accessibility & contrast

On white

14.70
#3E174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#3E174B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E174B
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E174B#FFFFFF#000000##FFFFFF
##3E174B1.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e174b;
/* rgb */ color: rgb(62, 23, 75);
/* oklch */ color: oklch(29.0% 0.098 316.7);
Tailwind
colors: {
  custom: {
    50: '#75577d',
    500: '#3e174b',
    950: '#000000',
  },
}
SCSS
$custom: #3e174b;
$custom-light: #75577d;
$custom-dark: #000000;
JSON
{
  "hex": "#3e174b",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 285,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29008,
    "c": 0.09845,
    "h": 316.7
  },
  "luminance": 0.02145
}

Semantic roles & 50–950 ramp

primary
#3E174B
secondary
#4D823C
accent
#DC4B70
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3E174B

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

Preview Lab → · Contrast checker → · Palette generator →

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