#3A197E#3A197E

#3A197E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.156 H 290.0°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#3A197E
RGBrgb(58, 25, 126)
HSLhsl(260, 67%, 30%)
HSVhsv(260, 80%, 49%)
CMYKcmyk(54%, 80.2%, 0%, 50.6%)
CIE-LABlab(20.44, 40.41, -50.90)
CIE-LCHlch(20.44, 64.99, 308.45°)
OKLaboklab(33.25% 0.0533 -0.1463)
OKLCHoklch(33.25% 0.156 290)
XYZxyz(5.8574, 3.1009, 20.0245)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A197E #5D7E19
analogous
#192B7E #3A197E #6D197E
triadic
#3A197E #7E3A19 #197E3A
tetradic
#3A197E #7E192B #5D7E19 #197E6D
square
#3A197E #7E192B #5D7E19 #197E6D
split-complementary
#3A197E #7E6D19 #2B7E19
monochromatic
#0C051A #220F4B #3A197E #5223B1 #6D3AD8

Accessibility & contrast

On white

12.96
#3A197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A197E
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A197E#FFFFFF#000000##FFFFFF
##3A197E1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#21364B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a197e;
/* rgb */ color: rgb(58, 25, 126);
/* oklch */ color: oklch(33.2% 0.156 290.0);
Tailwind
colors: {
  custom: {
    50: '#785aa4',
    500: '#3a197e',
    950: '#000000',
  },
}
SCSS
$custom: #3a197e;
$custom-light: #785aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a197e",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 259.604,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33245,
    "c": 0.15573,
    "h": 290
  },
  "luminance": 0.03101
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A197E

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

Preview Lab → · Contrast checker → · Palette generator →

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