#3D198E#3D198E

#3D198E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.174 H 287.7°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#3D198E
RGBrgb(61, 25, 142)
HSLhsl(258, 70%, 33%)
HSVhsv(258, 82%, 56%)
CMYKcmyk(57%, 82.4%, 0%, 44.3%)
CIE-LABlab(22.44, 45.39, -57.66)
CIE-LCHlch(22.44, 73.38, 308.21°)
OKLaboklab(35.21% 0.0529 -0.166)
OKLCHoklch(35.21% 0.174 287.7)
XYZxyz(7.1531, 3.6400, 25.9116)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D198E #6A8E19
analogous
#192F8E #3D198E #78198E
triadic
#3D198E #8E3D19 #198E3D
tetradic
#3D198E #8E192F #6A8E19 #198E78
square
#3D198E #8E192F #6A8E19 #198E78
split-complementary
#3D198E #8E7819 #2F8E19
monochromatic
#100726 #27105A #3D198E #5322C2 #7343DE

Accessibility & contrast

On white

12.15
#3D198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D198E
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D198E#FFFFFF#000000##FFFFFF
##3D198E1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#193C54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3d198e;
/* rgb */ color: rgb(61, 25, 142);
/* oklch */ color: oklch(35.2% 0.174 287.7);
Tailwind
colors: {
  custom: {
    50: '#7d5bb0',
    500: '#3d198e',
    950: '#000000',
  },
}
SCSS
$custom: #3d198e;
$custom-light: #7d5bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d198e",
  "rgb": {
    "r": 61,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 258.462,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35213,
    "c": 0.17419,
    "h": 287.7
  },
  "luminance": 0.0364
}

Semantic roles & 50–950 ramp

primary
#3D198E
secondary
#99BF44
accent
#ED3BB6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3D198E

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

Preview Lab → · Contrast checker → · Palette generator →

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