#3A198D#3A198D

#3A198D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.173 H 286.2°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#3A198D
RGBrgb(58, 25, 141)
HSLhsl(257, 70%, 33%)
HSVhsv(257, 82%, 55%)
CMYKcmyk(58.9%, 82.3%, 0%, 44.7%)
CIE-LABlab(22.01, 44.74, -57.76)
CIE-LCHlch(22.01, 73.07, 307.76°)
OKLaboklab(34.8% 0.0484 -0.1664)
OKLCHoklch(34.8% 0.173 286.2)
XYZxyz(6.8988, 3.5175, 25.5096)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A198D #6C8D19
analogous
#19328D #3A198D #74198D
triadic
#3A198D #8D3A19 #198D3A
tetradic
#3A198D #8D1932 #6C8D19 #198D74
square
#3A198D #8D1932 #6C8D19 #198D74
split-complementary
#3A198D #8D7419 #328D19
monochromatic
#0F0725 #251059 #3A198D #4F22C1 #6F43DE

Accessibility & contrast

On white

12.33
#3A198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A198D
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A198D#FFFFFF#000000##FFFFFF
##3A198D1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#0F3C54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a198d;
/* rgb */ color: rgb(58, 25, 141);
/* oklch */ color: oklch(34.8% 0.173 286.2);
Tailwind
colors: {
  custom: {
    50: '#7b5baf',
    500: '#3a198d',
    950: '#000000',
  },
}
SCSS
$custom: #3a198d;
$custom-light: #7b5baf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a198d",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 257.069,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34802,
    "c": 0.17327,
    "h": 286.2
  },
  "luminance": 0.03518
}

Semantic roles & 50–950 ramp

primary
#3A198D
secondary
#9BBF43
accent
#ED3BBA
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #3A198D

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

Preview Lab → · Contrast checker → · Palette generator →

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