#3A175C#3A175C

#3A175C is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.8% C 0.117 H 303.1°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#3A175C
RGBrgb(58, 23, 92)
HSLhsl(270, 60%, 23%)
HSVhsv(270, 75%, 36%)
CMYKcmyk(37%, 75%, 0%, 63.9%)
CIE-LABlab(16.92, 31.78, -34.54)
CIE-LCHlch(16.92, 46.93, 312.62°)
OKLaboklab(29.78% 0.064 -0.0983)
OKLCHoklch(29.78% 0.117 303.1)
XYZxyz(3.9826, 2.2850, 10.3544)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A175C #395C17
analogous
#18175C #3A175C #5C175B
triadic
#3A175C #5C3A17 #175C3A
tetradic
#3A175C #5C1817 #395C17 #175B5C
square
#3A175C #5C1817 #395C17 #175B5C
split-complementary
#3A175C #5B5C17 #175C18
monochromatic
#0F0618 #1B0B2B #3A175C #59238D #782FBE

Accessibility & contrast

On white

14.41
#3A175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3A175C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A175C
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A175C#FFFFFF#000000##FFFFFF
##3A175C1.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295E
Deuteranopia (green-blind)
#002A5B
Tritanopia (blue-blind)
#332737
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3a175c;
/* rgb */ color: rgb(58, 23, 92);
/* oklch */ color: oklch(29.8% 0.117 303.1);
Tailwind
colors: {
  custom: {
    50: '#74578b',
    500: '#3a175c',
    950: '#000000',
  },
}
SCSS
$custom: #3a175c;
$custom-light: #74578b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a175c",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 270.435,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29784,
    "c": 0.11728,
    "h": 303.1
  },
  "luminance": 0.02285
}

Semantic roles & 50–950 ramp

primary
#3A175C
secondary
#67933C
accent
#E34593
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #3A175C

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

Preview Lab → · Contrast checker → · Palette generator →

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