#3D197D#3D197D

#3D197D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.155 H 292.2°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#3D197D
RGBrgb(61, 25, 125)
HSLhsl(262, 67%, 29%)
HSVhsv(262, 80%, 49%)
CMYKcmyk(51.2%, 80%, 0%, 51%)
CIE-LABlab(20.70, 40.58, -49.83)
CIE-LCHlch(20.70, 64.26, 309.16°)
OKLaboklab(33.48% 0.0585 -0.1431)
OKLCHoklch(33.48% 0.155 292.2)
XYZxyz(5.9727, 3.1678, 19.6948)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D197D #597D19
analogous
#19277D #3D197D #6F197D
triadic
#3D197D #7D3D19 #197D3D
tetradic
#3D197D #7D1927 #597D19 #197D6F
square
#3D197D #7D1927 #597D19 #197D6F
split-complementary
#3D197D #7D6F19 #277D19
monochromatic
#0C051A #240F4A #3D197D #5623B0 #7239D7

Accessibility & contrast

On white

12.86
#3D197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D197D
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D197D#FFFFFF#000000##FFFFFF
##3D197D1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#28354A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d197d;
/* rgb */ color: rgb(61, 25, 125);
/* oklch */ color: oklch(33.5% 0.155 292.2);
Tailwind
colors: {
  custom: {
    50: '#7a5aa4',
    500: '#3d197d',
    950: '#000000',
  },
}
SCSS
$custom: #3d197d;
$custom-light: #7a5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#3d197d",
  "rgb": {
    "r": 61,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 261.6,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3348,
    "c": 0.15456,
    "h": 292.2
  },
  "luminance": 0.03168
}

Semantic roles & 50–950 ramp

primary
#3D197D
secondary
#89B140
accent
#EA3EAC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D197D

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

Preview Lab → · Contrast checker → · Palette generator →

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