#3A198C#3A198C

#3A198C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.172 H 286.4°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#3A198C
RGBrgb(58, 25, 140)
HSLhsl(257, 70%, 32%)
HSVhsv(257, 82%, 55%)
CMYKcmyk(58.6%, 82.1%, 0%, 45.1%)
CIE-LABlab(21.90, 44.46, -57.32)
CIE-LCHlch(21.90, 72.54, 307.80°)
OKLaboklab(34.7% 0.0487 -0.1651)
OKLCHoklch(34.7% 0.172 286.4)
XYZxyz(6.8248, 3.4879, 25.1195)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A198C #6B8C19
analogous
#19328C #3A198C #73198C
triadic
#3A198C #8C3A19 #198C3A
tetradic
#3A198C #8C1932 #6B8C19 #198C73
square
#3A198C #8C1932 #6B8C19 #198C73
split-complementary
#3A198C #8C7319 #328C19
monochromatic
#0F0624 #241058 #3A198C #5022C0 #6F42DD

Accessibility & contrast

On white

12.37
#3A198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3A198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A198C
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A198C#FFFFFF#000000##FFFFFF
##3A198C1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#113B53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a198c;
/* rgb */ color: rgb(58, 25, 140);
/* oklch */ color: oklch(34.7% 0.172 286.4);
Tailwind
colors: {
  custom: {
    50: '#7b5baf',
    500: '#3a198c',
    950: '#000000',
  },
}
SCSS
$custom: #3a198c;
$custom-light: #7b5baf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a198c",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 257.217,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34696,
    "c": 0.17211,
    "h": 286.4
  },
  "luminance": 0.03488
}

Semantic roles & 50–950 ramp

primary
#3A198C
secondary
#9BBE43
accent
#ED3BBA
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A198C

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

Preview Lab → · Contrast checker → · Palette generator →

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