#3D197A#3D197A

#3D197A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.151 H 293.2°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#3D197A
RGBrgb(61, 25, 122)
HSLhsl(262, 66%, 29%)
HSVhsv(262, 80%, 48%)
CMYKcmyk(50%, 79.5%, 0%, 52.2%)
CIE-LABlab(20.41, 39.73, -48.40)
CIE-LCHlch(20.41, 62.61, 309.38°)
OKLaboklab(33.18% 0.0594 -0.1389)
OKLCHoklch(33.18% 0.151 293.2)
XYZxyz(5.7840, 3.0923, 18.7007)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D197A #567A19
analogous
#19267A #3D197A #6E197A
triadic
#3D197A #7A3D19 #197A3D
tetradic
#3D197A #7A1926 #567A19 #197A6E
square
#3D197A #7A1926 #567A19 #197A6E
split-complementary
#3D197A #7A6E19 #267A19
monochromatic
#0D0519 #240F47 #3D197A #5623AD #7237D6

Accessibility & contrast

On white

12.97
#3D197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3D197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D197A
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D197A#FFFFFF#000000##FFFFFF
##3D197A1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#2A3449
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3d197a;
/* rgb */ color: rgb(61, 25, 122);
/* oklch */ color: oklch(33.2% 0.151 293.2);
Tailwind
colors: {
  custom: {
    50: '#7a5aa1',
    500: '#3d197a',
    950: '#000000',
  },
}
SCSS
$custom: #3d197a;
$custom-light: #7a5aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d197a",
  "rgb": {
    "r": 61,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 262.268,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33184,
    "c": 0.15106,
    "h": 293.2
  },
  "luminance": 0.03093
}

Semantic roles & 50–950 ramp

primary
#3D197A
secondary
#86AF40
accent
#E93FAA
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D197A

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

Preview Lab → · Contrast checker → · Palette generator →

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