#3D197F#3D197F

#3D197F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.157 H 291.6°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#3D197F
RGBrgb(61, 25, 127)
HSLhsl(261, 67%, 30%)
HSVhsv(261, 80%, 50%)
CMYKcmyk(52%, 80.3%, 0%, 50.2%)
CIE-LABlab(20.90, 41.15, -50.77)
CIE-LCHlch(20.90, 65.35, 309.02°)
OKLaboklab(33.68% 0.0579 -0.1458)
OKLCHoklch(33.68% 0.157 291.6)
XYZxyz(6.1018, 3.2194, 20.3745)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D197F #5B7F19
analogous
#19287F #3D197F #70197F
triadic
#3D197F #7F3D19 #197F3D
tetradic
#3D197F #7F1928 #5B7F19 #197F70
square
#3D197F #7F1928 #5B7F19 #197F70
split-complementary
#3D197F #7F7019 #287F19
monochromatic
#0C051A #240F4C #3D197F #5623B2 #723AD8

Accessibility & contrast

On white

12.77
#3D197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3D197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D197F
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D197F#FFFFFF#000000##FFFFFF
##3D197F1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#27364C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d197f;
/* rgb */ color: rgb(61, 25, 127);
/* oklch */ color: oklch(33.7% 0.157 291.6);
Tailwind
colors: {
  custom: {
    50: '#7a5aa5',
    500: '#3d197f',
    950: '#000000',
  },
}
SCSS
$custom: #3d197f;
$custom-light: #7a5aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#3d197f",
  "rgb": {
    "r": 61,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 261.176,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33678,
    "c": 0.1569,
    "h": 291.6
  },
  "luminance": 0.0322
}

Semantic roles & 50–950 ramp

primary
#3D197F
secondary
#8BB341
accent
#EA3EAD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D197F

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

Preview Lab → · Contrast checker → · Palette generator →

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