#3A174F#3A174F

#3A174F is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.101 H 310.3°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#3A174F
RGBrgb(58, 23, 79)
HSLhsl(278, 55%, 20%)
HSVhsv(278, 71%, 31%)
CMYKcmyk(26.6%, 70.9%, 0%, 69%)
CIE-LABlab(15.89, 28.31, -27.42)
CIE-LCHlch(15.89, 39.41, 315.91°)
OKLaboklab(28.72% 0.0656 -0.0774)
OKLCHoklch(28.72% 0.101 310.3)
XYZxyz(3.4623, 2.0769, 7.6141)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A174F #2C4F17
analogous
#1E174F #3A174F #4F1748
triadic
#3A174F #4F3A17 #174F3A
tetradic
#3A174F #4F1E17 #2C4F17 #17484F
square
#3A174F #4F1E17 #2C4F17 #17484F
split-complementary
#3A174F #484F17 #174F1E
monochromatic
#110718 #170920 #3A174F #5D257E #8033AE

Accessibility & contrast

On white

14.84
#3A174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#3A174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A174F
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A174F#FFFFFF#000000##FFFFFF
##3A174F1.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002651
Deuteranopia (green-blind)
#10284E
Tritanopia (blue-blind)
#372230
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3a174f;
/* rgb */ color: rgb(58, 23, 79);
/* oklch */ color: oklch(28.7% 0.101 310.3);
Tailwind
colors: {
  custom: {
    50: '#725781',
    500: '#3a174f',
    950: '#000000',
  },
}
SCSS
$custom: #3a174f;
$custom-light: #725781;
$custom-dark: #000000;
JSON
{
  "hex": "#3a174f",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 277.5,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.28717,
    "c": 0.10144,
    "h": 310.3
  },
  "luminance": 0.02077
}

Semantic roles & 50–950 ramp

primary
#3A174F
secondary
#58863C
accent
#DE4A81
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3A174F

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

Preview Lab → · Contrast checker → · Palette generator →

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