#3A174C#3A174C

#3A174C is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.098 H 312.2°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#3A174C
RGBrgb(58, 23, 76)
HSLhsl(280, 54%, 19%)
HSVhsv(280, 70%, 30%)
CMYKcmyk(23.7%, 69.7%, 0%, 70.2%)
CIE-LABlab(15.67, 27.54, -25.72)
CIE-LCHlch(15.67, 37.68, 316.95°)
OKLaboklab(28.49% 0.0658 -0.0724)
OKLCHoklch(28.49% 0.098 312.2)
XYZxyz(3.3556, 2.0342, 7.0520)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A174C #294C17
analogous
#20174C #3A174C #4C1744
triadic
#3A174C #4C3A17 #174C3A
tetradic
#3A174C #4C2017 #294C17 #17444C
square
#3A174C #4C2017 #294C17 #17444C
split-complementary
#3A174C #444C17 #174C20
monochromatic
#120717 #16091D #3A174C #5E257B #8233AA

Accessibility & contrast

On white

14.93
#3A174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A174C
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A174C#FFFFFF#000000##FFFFFF
##3A174C1.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02254E
Deuteranopia (green-blind)
#13284B
Tritanopia (blue-blind)
#38212F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a174c;
/* rgb */ color: rgb(58, 23, 76);
/* oklch */ color: oklch(28.5% 0.098 312.2);
Tailwind
colors: {
  custom: {
    50: '#72577e',
    500: '#3a174c',
    950: '#000000',
  },
}
SCSS
$custom: #3a174c;
$custom-light: #72577e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a174c",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 279.623,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.28488,
    "c": 0.09779,
    "h": 312.2
  },
  "luminance": 0.02034
}

Semantic roles & 50–950 ramp

primary
#3A174C
secondary
#54833C
accent
#DD4B7C
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3A174C

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

Preview Lab → · Contrast checker → · Palette generator →

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