#3A197B#3A197B

#3A197B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.152 H 290.9°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#3A197B
RGBrgb(58, 25, 123)
HSLhsl(260, 66%, 29%)
HSVhsv(260, 80%, 48%)
CMYKcmyk(52.8%, 79.7%, 0%, 51.8%)
CIE-LABlab(20.14, 39.54, -49.49)
CIE-LCHlch(20.14, 63.35, 308.63°)
OKLaboklab(32.94% 0.0543 -0.1422)
OKLCHoklch(32.94% 0.152 290.9)
XYZxyz(5.6667, 3.0246, 19.0203)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A197B #5A7B19
analogous
#19297B #3A197B #6B197B
triadic
#3A197B #7B3A19 #197B3A
tetradic
#3A197B #7B1929 #5A7B19 #197B6B
square
#3A197B #7B1929 #5A7B19 #197B6B
split-complementary
#3A197B #7B6B19 #297B19
monochromatic
#0C0519 #220F48 #3A197B #5223AE #6D38D7

Accessibility & contrast

On white

13.08
#3A197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3A197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A197B
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A197B#FFFFFF#000000##FFFFFF
##3A197B1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#233449
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a197b;
/* rgb */ color: rgb(58, 25, 123);
/* oklch */ color: oklch(32.9% 0.152 290.9);
Tailwind
colors: {
  custom: {
    50: '#785aa2',
    500: '#3a197b',
    950: '#000000',
  },
}
SCSS
$custom: #3a197b;
$custom-light: #785aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a197b",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 260.204,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32943,
    "c": 0.15218,
    "h": 290.9
  },
  "luminance": 0.03025
}

Semantic roles & 50–950 ramp

primary
#3A197B
secondary
#8AAF40
accent
#E93FB0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A197B

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

Preview Lab → · Contrast checker → · Palette generator →

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