#3A198A#3A198A

#3A198A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.170 H 286.9°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#3A198A
RGBrgb(58, 25, 138)
HSLhsl(258, 69%, 32%)
HSVhsv(258, 82%, 54%)
CMYKcmyk(58%, 81.9%, 0%, 45.9%)
CIE-LABlab(21.69, 43.88, -56.42)
CIE-LCHlch(21.69, 71.47, 307.87°)
OKLaboklab(34.49% 0.0494 -0.1624)
OKLCHoklch(34.49% 0.17 286.9)
XYZxyz(6.6786, 3.4294, 24.3499)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A198A #698A19
analogous
#19318A #3A198A #73198A
triadic
#3A198A #8A3A19 #198A3A
tetradic
#3A198A #8A1931 #698A19 #198A73
square
#3A198A #8A1931 #698A19 #198A73
split-complementary
#3A198A #8A7319 #318A19
monochromatic
#0E0622 #241056 #3A198A #5022BE #6E41DD

Accessibility & contrast

On white

12.46
#3A198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3A198A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A198A
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A198A#FFFFFF#000000##FFFFFF
##3A198A1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#143B52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a198a;
/* rgb */ color: rgb(58, 25, 138);
/* oklch */ color: oklch(34.5% 0.170 286.9);
Tailwind
colors: {
  custom: {
    50: '#7b5bad',
    500: '#3a198a',
    950: '#000000',
  },
}
SCSS
$custom: #3a198a;
$custom-light: #7b5bad;
$custom-dark: #000000;
JSON
{
  "hex": "#3a198a",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 257.522,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34485,
    "c": 0.16979,
    "h": 286.9
  },
  "luminance": 0.0343
}

Semantic roles & 50–950 ramp

primary
#3A198A
secondary
#99BD42
accent
#EC3CB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A198A

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

Preview Lab → · Contrast checker → · Palette generator →

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