#3A174E#3A174E

#3A174E is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.100 H 310.9°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#3A174E
RGBrgb(58, 23, 78)
HSLhsl(278, 54%, 20%)
HSVhsv(278, 71%, 31%)
CMYKcmyk(25.6%, 70.5%, 0%, 69.4%)
CIE-LABlab(15.81, 28.05, -26.86)
CIE-LCHlch(15.81, 38.83, 316.24°)
OKLaboklab(28.64% 0.0657 -0.0757)
OKLCHoklch(28.64% 0.1 310.9)
XYZxyz(3.4262, 2.0625, 7.4239)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A174E #2B4E17
analogous
#1F174E #3A174E #4E1746
triadic
#3A174E #4E3A17 #174E3A
tetradic
#3A174E #4E1F17 #2B4E17 #17464E
square
#3A174E #4E1F17 #2B4E17 #17464E
split-complementary
#3A174E #464E17 #174E1F
monochromatic
#120718 #17091F #3A174E #5D257D #8033AD

Accessibility & contrast

On white

14.87
#3A174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A174E
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A174E#FFFFFF#000000##FFFFFF
##3A174E1.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002650
Deuteranopia (green-blind)
#11284D
Tritanopia (blue-blind)
#372230
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a174e;
/* rgb */ color: rgb(58, 23, 78);
/* oklch */ color: oklch(28.6% 0.100 310.9);
Tailwind
colors: {
  custom: {
    50: '#725780',
    500: '#3a174e',
    950: '#000000',
  },
}
SCSS
$custom: #3a174e;
$custom-light: #725780;
$custom-dark: #000000;
JSON
{
  "hex": "#3a174e",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 278.182,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.2864,
    "c": 0.10022,
    "h": 310.9
  },
  "luminance": 0.02062
}

Semantic roles & 50–950 ramp

primary
#3A174E
secondary
#56853C
accent
#DE4A80
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3A174E

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

Preview Lab → · Contrast checker → · Palette generator →

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