#3A197D#3A197D

#3A197D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.155 H 290.3°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#3A197D
RGBrgb(58, 25, 125)
HSLhsl(260, 67%, 29%)
HSVhsv(260, 80%, 49%)
CMYKcmyk(53.6%, 80%, 0%, 51%)
CIE-LABlab(20.34, 40.12, -50.43)
CIE-LCHlch(20.34, 64.45, 308.50°)
OKLaboklab(33.14% 0.0536 -0.1449)
OKLCHoklch(33.14% 0.155 290.3)
XYZxyz(5.7932, 3.0752, 19.6864)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A197D #5C7D19
analogous
#192A7D #3A197D #6C197D
triadic
#3A197D #7D3A19 #197D3A
tetradic
#3A197D #7D192A #5C7D19 #197D6C
square
#3A197D #7D192A #5C7D19 #197D6C
split-complementary
#3A197D #7D6C19 #2A7D19
monochromatic
#0C051A #220F4A #3A197D #5223B0 #6D39D7

Accessibility & contrast

On white

13.00
#3A197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3A197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A197D
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A197D#FFFFFF#000000##FFFFFF
##3A197D1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#22354A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a197d;
/* rgb */ color: rgb(58, 25, 125);
/* oklch */ color: oklch(33.1% 0.155 290.3);
Tailwind
colors: {
  custom: {
    50: '#785aa4',
    500: '#3a197d',
    950: '#000000',
  },
}
SCSS
$custom: #3a197d;
$custom-light: #785aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a197d",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 259.8,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33144,
    "c": 0.15455,
    "h": 290.3
  },
  "luminance": 0.03075
}

Semantic roles & 50–950 ramp

primary
#3A197D
secondary
#8CB140
accent
#EA3EB1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A197D

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

Preview Lab → · Contrast checker → · Palette generator →

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