#3A197F#3A197F

#3A197F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.157 H 289.7°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#3A197F
RGBrgb(58, 25, 127)
HSLhsl(259, 67%, 30%)
HSVhsv(259, 80%, 50%)
CMYKcmyk(54.3%, 80.3%, 0%, 50.2%)
CIE-LABlab(20.54, 40.70, -51.37)
CIE-LCHlch(20.54, 65.54, 308.39°)
OKLaboklab(33.35% 0.053 -0.1477)
OKLCHoklch(33.35% 0.157 289.7)
XYZxyz(5.9222, 3.1268, 20.3660)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A197F #5E7F19
analogous
#192B7F #3A197F #6D197F
triadic
#3A197F #7F3A19 #197F3A
tetradic
#3A197F #7F192B #5E7F19 #197F6D
square
#3A197F #7F192B #5E7F19 #197F6D
split-complementary
#3A197F #7F6D19 #2B7F19
monochromatic
#0C051A #230F4C #3A197F #5123B2 #6D3AD8

Accessibility & contrast

On white

12.92
#3A197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3A197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A197F
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A197F#FFFFFF#000000##FFFFFF
##3A197F1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#20364C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a197f;
/* rgb */ color: rgb(58, 25, 127);
/* oklch */ color: oklch(33.3% 0.157 289.7);
Tailwind
colors: {
  custom: {
    50: '#795aa5',
    500: '#3a197f',
    950: '#000000',
  },
}
SCSS
$custom: #3a197f;
$custom-light: #795aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a197f",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 259.412,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33347,
    "c": 0.15691,
    "h": 289.7
  },
  "luminance": 0.03127
}

Semantic roles & 50–950 ramp

primary
#3A197F
secondary
#8EB341
accent
#EA3EB2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A197F

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

Preview Lab → · Contrast checker → · Palette generator →

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