#3A174D#3A174D

#3A174D is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.6% C 0.099 H 311.6°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#3A174D
RGBrgb(58, 23, 77)
HSLhsl(279, 54%, 20%)
HSVhsv(279, 70%, 30%)
CMYKcmyk(24.7%, 70.1%, 0%, 69.8%)
CIE-LABlab(15.74, 27.79, -26.29)
CIE-LCHlch(15.74, 38.26, 316.59°)
OKLaboklab(28.56% 0.0657 -0.0741)
OKLCHoklch(28.56% 0.099 311.6)
XYZxyz(3.3906, 2.0482, 7.2365)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A174D #2A4D17
analogous
#1F174D #3A174D #4D1745
triadic
#3A174D #4D3A17 #174D3A
tetradic
#3A174D #4D1F17 #2A4D17 #17454D
square
#3A174D #4D1F17 #2A4D17 #17454D
split-complementary
#3A174D #454D17 #174D1F
monochromatic
#120718 #17091E #3A174D #5D257C #8133AB

Accessibility & contrast

On white

14.90
#3A174D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#3A174D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A174D
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A174D#FFFFFF#000000##FFFFFF
##3A174D1.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01264F
Deuteranopia (green-blind)
#12284C
Tritanopia (blue-blind)
#38222F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a174d;
/* rgb */ color: rgb(58, 23, 77);
/* oklch */ color: oklch(28.6% 0.099 311.6);
Tailwind
colors: {
  custom: {
    50: '#72577f',
    500: '#3a174d',
    950: '#000000',
  },
}
SCSS
$custom: #3a174d;
$custom-light: #72577f;
$custom-dark: #000000;
JSON
{
  "hex": "#3a174d",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 77
  },
  "hsl": {
    "h": 278.889,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28564,
    "c": 0.09901,
    "h": 311.6
  },
  "luminance": 0.02048
}

Semantic roles & 50–950 ramp

primary
#3A174D
secondary
#55843C
accent
#DD4A7E
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3A174D

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

Preview Lab → · Contrast checker → · Palette generator →

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