#3A175D#3A175D

#3A175D is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.9% C 0.118 H 302.6°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#3A175D
RGBrgb(58, 23, 93)
HSLhsl(270, 60%, 23%)
HSVhsv(270, 75%, 36%)
CMYKcmyk(37.6%, 75.3%, 0%, 63.5%)
CIE-LABlab(17.00, 32.06, -35.07)
CIE-LCHlch(17.00, 47.51, 312.43°)
OKLaboklab(29.87% 0.0638 -0.0998)
OKLCHoklch(29.87% 0.118 302.6)
XYZxyz(4.0266, 2.3026, 10.5861)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A175D #3A5D17
analogous
#17175D #3A175D #5D175D
triadic
#3A175D #5D3A17 #175D3A
tetradic
#3A175D #5D1717 #3A5D17 #175D5D
square
#3A175D #5D1717 #3A5D17 #175D5D
split-complementary
#3A175D #5D5D17 #175D17
monochromatic
#0F0619 #1B0B2C #3A175D #59238E #772FBF

Accessibility & contrast

On white

14.38
#3A175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A175D
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A175D#FFFFFF#000000##FFFFFF
##3A175D1.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#002A5C
Tritanopia (blue-blind)
#332838
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3a175d;
/* rgb */ color: rgb(58, 23, 93);
/* oklch */ color: oklch(29.9% 0.118 302.6);
Tailwind
colors: {
  custom: {
    50: '#74578b',
    500: '#3a175d',
    950: '#000000',
  },
}
SCSS
$custom: #3a175d;
$custom-light: #74578b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a175d",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 270,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.2987,
    "c": 0.11849,
    "h": 302.6
  },
  "luminance": 0.02303
}

Semantic roles & 50–950 ramp

primary
#3A175D
secondary
#68943C
accent
#E34494
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #3A175D

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

Preview Lab → · Contrast checker → · Palette generator →

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