#3E174F#3E174F

#3E174F is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.3% C 0.103 H 314.0°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#3E174F
RGBrgb(62, 23, 79)
HSLhsl(282, 55%, 20%)
HSVhsv(282, 71%, 31%)
CMYKcmyk(21.5%, 70.9%, 0%, 69%)
CIE-LABlab(16.51, 29.38, -26.38)
CIE-LCHlch(16.51, 39.49, 318.08°)
OKLaboklab(29.3% 0.0716 -0.0742)
OKLCHoklch(29.3% 0.103 314)
XYZxyz(3.7040, 2.2016, 7.6254)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E174F #284F17
analogous
#22174F #3E174F #4F1744
triadic
#3E174F #4F3E17 #174F3E
tetradic
#3E174F #4F2217 #284F17 #17444F
square
#3E174F #4F2217 #284F17 #17444F
split-complementary
#3E174F #444F17 #174F22
monochromatic
#130718 #190920 #3E174F #63257E #8833AE

Accessibility & contrast

On white

14.58
#3E174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#3E174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E174F
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E174F#FFFFFF#000000##FFFFFF
##3E174F1.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012751
Deuteranopia (green-blind)
#142A4E
Tritanopia (blue-blind)
#3C2230
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3e174f;
/* rgb */ color: rgb(62, 23, 79);
/* oklch */ color: oklch(29.3% 0.103 314.0);
Tailwind
colors: {
  custom: {
    50: '#755781',
    500: '#3e174f',
    950: '#000000',
  },
}
SCSS
$custom: #3e174f;
$custom-light: #755781;
$custom-dark: #000000;
JSON
{
  "hex": "#3e174f",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 281.786,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.29301,
    "c": 0.10308,
    "h": 314
  },
  "luminance": 0.02201
}

Semantic roles & 50–950 ramp

primary
#3E174F
secondary
#52863C
accent
#DE4A77
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #3E174F

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

Preview Lab → · Contrast checker → · Palette generator →

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