#3D198D#3D198D

#3D198D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.173 H 287.9°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#3D198D
RGBrgb(61, 25, 141)
HSLhsl(259, 70%, 33%)
HSVhsv(259, 82%, 55%)
CMYKcmyk(56.7%, 82.3%, 0%, 44.7%)
CIE-LABlab(22.34, 45.11, -57.21)
CIE-LCHlch(22.34, 72.86, 308.26°)
OKLaboklab(35.11% 0.0532 -0.1647)
OKLCHoklch(35.11% 0.173 287.9)
XYZxyz(7.0784, 3.6101, 25.5180)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D198D #698D19
analogous
#192F8D #3D198D #77198D
triadic
#3D198D #8D3D19 #198D3D
tetradic
#3D198D #8D192F #698D19 #198D77
square
#3D198D #8D192F #698D19 #198D77
split-complementary
#3D198D #8D7719 #2F8D19
monochromatic
#100725 #271059 #3D198D #5322C1 #7343DE

Accessibility & contrast

On white

12.20
#3D198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3D198D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D198D
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D198D#FFFFFF#000000##FFFFFF
##3D198D1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#1A3C54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d198d;
/* rgb */ color: rgb(61, 25, 141);
/* oklch */ color: oklch(35.1% 0.173 287.9);
Tailwind
colors: {
  custom: {
    50: '#7d5baf',
    500: '#3d198d',
    950: '#000000',
  },
}
SCSS
$custom: #3d198d;
$custom-light: #7d5baf;
$custom-dark: #000000;
JSON
{
  "hex": "#3d198d",
  "rgb": {
    "r": 61,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 258.621,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35109,
    "c": 0.17305,
    "h": 287.9
  },
  "luminance": 0.0361
}

Semantic roles & 50–950 ramp

primary
#3D198D
secondary
#98BF43
accent
#ED3BB6
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3D198D

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

Preview Lab → · Contrast checker → · Palette generator →

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