#3A175B#3A175B

#3A175B is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.7% C 0.116 H 303.6°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#3A175B
RGBrgb(58, 23, 91)
HSLhsl(271, 60%, 22%)
HSVhsv(271, 75%, 36%)
CMYKcmyk(36.3%, 74.7%, 0%, 64.3%)
CIE-LABlab(16.83, 31.51, -34.00)
CIE-LCHlch(16.83, 46.36, 312.82°)
OKLaboklab(29.7% 0.0642 -0.0967)
OKLCHoklch(29.7% 0.116 303.6)
XYZxyz(3.9392, 2.2677, 10.1257)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A175B #385B17
analogous
#18175B #3A175B #5B175A
triadic
#3A175B #5B3A17 #175B3A
tetradic
#3A175B #5B1817 #385B17 #175A5B
square
#3A175B #5B1817 #385B17 #175A5B
split-complementary
#3A175B #5A5B17 #175B18
monochromatic
#100618 #1B0B2A #3A175B #59238C #7830BD

Accessibility & contrast

On white

14.45
#3A175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3A175B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A175B
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A175B#FFFFFF#000000##FFFFFF
##3A175B1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#00295A
Tritanopia (blue-blind)
#342737
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3a175b;
/* rgb */ color: rgb(58, 23, 91);
/* oklch */ color: oklch(29.7% 0.116 303.6);
Tailwind
colors: {
  custom: {
    50: '#74578a',
    500: '#3a175b',
    950: '#000000',
  },
}
SCSS
$custom: #3a175b;
$custom-light: #74578a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a175b",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 270.882,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29698,
    "c": 0.11606,
    "h": 303.6
  },
  "luminance": 0.02268
}

Semantic roles & 50–950 ramp

primary
#3A175B
secondary
#66923C
accent
#E34592
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #3A175B

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

Preview Lab → · Contrast checker → · Palette generator →

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