#3D197C#3D197C

#3D197C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.153 H 292.5°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#3D197C
RGBrgb(61, 25, 124)
HSLhsl(262, 66%, 29%)
HSVhsv(262, 80%, 49%)
CMYKcmyk(50.8%, 79.8%, 0%, 51.4%)
CIE-LABlab(20.61, 40.29, -49.35)
CIE-LCHlch(20.61, 63.71, 309.23°)
OKLaboklab(33.38% 0.0588 -0.1417)
OKLCHoklch(33.38% 0.153 292.5)
XYZxyz(5.9092, 3.1424, 19.3601)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D197C #587C19
analogous
#19277C #3D197C #6F197C
triadic
#3D197C #7C3D19 #197C3D
tetradic
#3D197C #7C1927 #587C19 #197C6F
square
#3D197C #7C1927 #587C19 #197C6F
split-complementary
#3D197C #7C6F19 #277C19
monochromatic
#0D0519 #240F49 #3D197C #5623AF #7238D7

Accessibility & contrast

On white

12.89
#3D197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3D197C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D197C
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D197C#FFFFFF#000000##FFFFFF
##3D197C1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#29354A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d197c;
/* rgb */ color: rgb(61, 25, 124);
/* oklch */ color: oklch(33.4% 0.153 292.5);
Tailwind
colors: {
  custom: {
    50: '#7a5aa3',
    500: '#3d197c',
    950: '#000000',
  },
}
SCSS
$custom: #3d197c;
$custom-light: #7a5aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#3d197c",
  "rgb": {
    "r": 61,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 261.818,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33381,
    "c": 0.15339,
    "h": 292.5
  },
  "luminance": 0.03143
}

Semantic roles & 50–950 ramp

primary
#3D197C
secondary
#88B040
accent
#E93EAB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D197C

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

Preview Lab → · Contrast checker → · Palette generator →

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