#3D197E#3D197E

#3D197E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.156 H 291.9°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#3D197E
RGBrgb(61, 25, 126)
HSLhsl(261, 67%, 30%)
HSVhsv(261, 80%, 49%)
CMYKcmyk(51.6%, 80.2%, 0%, 50.6%)
CIE-LABlab(20.80, 40.86, -50.30)
CIE-LCHlch(20.80, 64.80, 309.09°)
OKLaboklab(33.58% 0.0582 -0.1444)
OKLCHoklch(33.58% 0.156 291.9)
XYZxyz(6.0369, 3.1935, 20.0329)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D197E #5A7E19
analogous
#19287E #3D197E #70197E
triadic
#3D197E #7E3D19 #197E3D
tetradic
#3D197E #7E1928 #5A7E19 #197E70
square
#3D197E #7E1928 #5A7E19 #197E70
split-complementary
#3D197E #7E7019 #287E19
monochromatic
#0C051A #240F4B #3D197E #5623B1 #723AD8

Accessibility & contrast

On white

12.81
#3D197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D197E
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D197E#FFFFFF#000000##FFFFFF
##3D197E1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#27354B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d197e;
/* rgb */ color: rgb(61, 25, 126);
/* oklch */ color: oklch(33.6% 0.156 291.9);
Tailwind
colors: {
  custom: {
    50: '#7a5aa4',
    500: '#3d197e',
    950: '#000000',
  },
}
SCSS
$custom: #3d197e;
$custom-light: #7a5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#3d197e",
  "rgb": {
    "r": 61,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 261.386,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33579,
    "c": 0.15573,
    "h": 291.9
  },
  "luminance": 0.03194
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3D197E

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

Preview Lab → · Contrast checker → · Palette generator →

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