#3A175A#3A175A

#3A175A is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.6% C 0.115 H 304.1°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#3A175A
RGBrgb(58, 23, 90)
HSLhsl(271, 59%, 22%)
HSVhsv(271, 74%, 35%)
CMYKcmyk(35.6%, 74.4%, 0%, 64.7%)
CIE-LABlab(16.75, 31.24, -33.47)
CIE-LCHlch(16.75, 45.78, 313.03°)
OKLaboklab(29.61% 0.0643 -0.0951)
OKLCHoklch(29.61% 0.115 304.1)
XYZxyz(3.8964, 2.2505, 9.9000)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A175A #375A17
analogous
#18175A #3A175A #5A1759
triadic
#3A175A #5A3A17 #175A3A
tetradic
#3A175A #5A1817 #375A17 #17595A
square
#3A175A #5A1817 #375A17 #17595A
split-complementary
#3A175A #595A17 #175A18
monochromatic
#100618 #1B0B29 #3A175A #59238B #7930BB

Accessibility & contrast

On white

14.48
#3A175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A175A
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A175A#FFFFFF#000000##FFFFFF
##3A175A1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295C
Deuteranopia (green-blind)
#002959
Tritanopia (blue-blind)
#342636
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3a175a;
/* rgb */ color: rgb(58, 23, 90);
/* oklch */ color: oklch(29.6% 0.115 304.1);
Tailwind
colors: {
  custom: {
    50: '#745789',
    500: '#3a175a',
    950: '#000000',
  },
}
SCSS
$custom: #3a175a;
$custom-light: #745789;
$custom-dark: #000000;
JSON
{
  "hex": "#3a175a",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 271.343,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29612,
    "c": 0.11484,
    "h": 304.1
  },
  "luminance": 0.02251
}

Semantic roles & 50–950 ramp

primary
#3A175A
secondary
#64913C
accent
#E24590
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A175A

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

Preview Lab → · Contrast checker → · Palette generator →

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