#3A197C#3A197C

#3A197C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.153 H 290.6°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#3A197C
RGBrgb(58, 25, 124)
HSLhsl(260, 66%, 29%)
HSVhsv(260, 80%, 49%)
CMYKcmyk(53.2%, 79.8%, 0%, 51.4%)
CIE-LABlab(20.24, 39.83, -49.96)
CIE-LCHlch(20.24, 63.90, 308.56°)
OKLaboklab(33.04% 0.0539 -0.1436)
OKLCHoklch(33.04% 0.153 290.6)
XYZxyz(5.7296, 3.0498, 19.3516)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A197C #5B7C19
analogous
#192A7C #3A197C #6C197C
triadic
#3A197C #7C3A19 #197C3A
tetradic
#3A197C #7C192A #5B7C19 #197C6C
square
#3A197C #7C192A #5B7C19 #197C6C
split-complementary
#3A197C #7C6C19 #2A7C19
monochromatic
#0C0519 #220F49 #3A197C #5223AF #6D38D7

Accessibility & contrast

On white

13.04
#3A197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A197C
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A197C#FFFFFF#000000##FFFFFF
##3A197C1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#22354A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a197c;
/* rgb */ color: rgb(58, 25, 124);
/* oklch */ color: oklch(33.0% 0.153 290.6);
Tailwind
colors: {
  custom: {
    50: '#785aa3',
    500: '#3a197c',
    950: '#000000',
  },
}
SCSS
$custom: #3a197c;
$custom-light: #785aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a197c",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 260,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33044,
    "c": 0.15337,
    "h": 290.6
  },
  "luminance": 0.0305
}

Semantic roles & 50–950 ramp

primary
#3A197C
secondary
#8BB040
accent
#E93EB0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A197C

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

Preview Lab → · Contrast checker → · Palette generator →

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