#3B198A#3B198A

#3B198A is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.170 H 287.5°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#3B198A
RGBrgb(59, 25, 138)
HSLhsl(258, 69%, 32%)
HSVhsv(258, 82%, 54%)
CMYKcmyk(57.2%, 81.9%, 0%, 45.9%)
CIE-LABlab(21.80, 44.00, -56.23)
CIE-LCHlch(21.80, 71.40, 308.05°)
OKLaboklab(34.59% 0.051 -0.1619)
OKLCHoklch(34.59% 0.17 287.5)
XYZxyz(6.7373, 3.4597, 24.3526)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B198A #688A19
analogous
#19308A #3B198A #74198A
triadic
#3B198A #8A3B19 #198A3B
tetradic
#3B198A #8A1930 #688A19 #198A74
square
#3B198A #8A1930 #688A19 #198A74
split-complementary
#3B198A #8A7419 #308A19
monochromatic
#0F0622 #251056 #3B198A #5122BE #7041DD

Accessibility & contrast

On white

12.41
#3B198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B198A
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B198A#FFFFFF#000000##FFFFFF
##3B198A1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b198a;
/* rgb */ color: rgb(59, 25, 138);
/* oklch */ color: oklch(34.6% 0.170 287.5);
Tailwind
colors: {
  custom: {
    50: '#7b5bad',
    500: '#3b198a',
    950: '#000000',
  },
}
SCSS
$custom: #3b198a;
$custom-light: #7b5bad;
$custom-dark: #000000;
JSON
{
  "hex": "#3b198a",
  "rgb": {
    "r": 59,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 258.053,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34588,
    "c": 0.16972,
    "h": 287.5
  },
  "luminance": 0.0346
}

Semantic roles & 50–950 ramp

primary
#3B198A
secondary
#98BD42
accent
#EC3CB7
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3B198A

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

Preview Lab → · Contrast checker → · Palette generator →

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