#3D198F#3D198F

#3D198F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.175 H 287.4°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#3D198F
RGBrgb(61, 25, 143)
HSLhsl(258, 70%, 33%)
HSVhsv(258, 83%, 56%)
CMYKcmyk(57.3%, 82.5%, 0%, 43.9%)
CIE-LABlab(22.55, 45.68, -58.10)
CIE-LCHlch(22.55, 73.91, 308.17°)
OKLaboklab(35.32% 0.0525 -0.1673)
OKLCHoklch(35.32% 0.175 287.4)
XYZxyz(7.2285, 3.6701, 26.3088)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D198F #6B8F19
analogous
#19308F #3D198F #78198F
triadic
#3D198F #8F3D19 #198F3D
tetradic
#3D198F #8F1930 #6B8F19 #198F78
square
#3D198F #8F1930 #6B8F19 #198F78
split-complementary
#3D198F #8F7819 #308F19
monochromatic
#110727 #27105B #3D198F #5322C3 #7344DE

Accessibility & contrast

On white

12.11
#3D198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3D198F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D198F
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D198F#FFFFFF#000000##FFFFFF
##3D198F1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#173D55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3d198f;
/* rgb */ color: rgb(61, 25, 143);
/* oklch */ color: oklch(35.3% 0.175 287.4);
Tailwind
colors: {
  custom: {
    50: '#7d5cb1',
    500: '#3d198f',
    950: '#000000',
  },
}
SCSS
$custom: #3d198f;
$custom-light: #7d5cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d198f",
  "rgb": {
    "r": 61,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 258.305,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35318,
    "c": 0.17533,
    "h": 287.4
  },
  "luminance": 0.03671
}

Semantic roles & 50–950 ramp

primary
#3D198F
secondary
#9ABF44
accent
#ED3BB7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3D198F

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

Preview Lab → · Contrast checker → · Palette generator →

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