#3A197A#3A197A

#3A197A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.151 H 291.2°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#3A197A
RGBrgb(58, 25, 122)
HSLhsl(260, 66%, 29%)
HSVhsv(260, 80%, 48%)
CMYKcmyk(52.5%, 79.5%, 0%, 52.2%)
CIE-LABlab(20.04, 39.25, -49.01)
CIE-LCHlch(20.04, 62.79, 308.69°)
OKLaboklab(32.84% 0.0546 -0.1408)
OKLCHoklch(32.84% 0.151 291.2)
XYZxyz(5.6044, 2.9997, 18.6923)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A197A #597A19
analogous
#19297A #3A197A #6B197A
triadic
#3A197A #7A3A19 #197A3A
tetradic
#3A197A #7A1929 #597A19 #197A6B
square
#3A197A #7A1929 #597A19 #197A6B
split-complementary
#3A197A #7A6B19 #297A19
monochromatic
#0C0519 #220F47 #3A197A #5223AD #6D37D6

Accessibility & contrast

On white

13.13
#3A197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3A197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A197A
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A197A#FFFFFF#000000##FFFFFF
##3A197A1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#243449
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a197a;
/* rgb */ color: rgb(58, 25, 122);
/* oklch */ color: oklch(32.8% 0.151 291.2);
Tailwind
colors: {
  custom: {
    50: '#785aa1',
    500: '#3a197a',
    950: '#000000',
  },
}
SCSS
$custom: #3a197a;
$custom-light: #785aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a197a",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 260.412,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32844,
    "c": 0.15099,
    "h": 291.2
  },
  "luminance": 0.03
}

Semantic roles & 50–950 ramp

primary
#3A197A
secondary
#89AF40
accent
#E93FAF
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A197A

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

Preview Lab → · Contrast checker → · Palette generator →

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