#3D197B#3D197B

#3D197B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.152 H 292.9°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#3D197B
RGBrgb(61, 25, 123)
HSLhsl(262, 66%, 29%)
HSVhsv(262, 80%, 48%)
CMYKcmyk(50.4%, 79.7%, 0%, 51.8%)
CIE-LABlab(20.51, 40.01, -48.87)
CIE-LCHlch(20.51, 63.16, 309.31°)
OKLaboklab(33.28% 0.0591 -0.1403)
OKLCHoklch(33.28% 0.152 292.9)
XYZxyz(5.8463, 3.1172, 19.0287)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D197B #577B19
analogous
#19267B #3D197B #6E197B
triadic
#3D197B #7B3D19 #197B3D
tetradic
#3D197B #7B1926 #577B19 #197B6E
square
#3D197B #7B1926 #577B19 #197B6E
split-complementary
#3D197B #7B6E19 #267B19
monochromatic
#0D0519 #240F48 #3D197B #5623AE #7238D7

Accessibility & contrast

On white

12.94
#3D197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D197B
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D197B#FFFFFF#000000##FFFFFF
##3D197B1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#293449
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3d197b;
/* rgb */ color: rgb(61, 25, 123);
/* oklch */ color: oklch(33.3% 0.152 292.9);
Tailwind
colors: {
  custom: {
    50: '#7a5aa2',
    500: '#3d197b',
    950: '#000000',
  },
}
SCSS
$custom: #3d197b;
$custom-light: #7a5aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#3d197b",
  "rgb": {
    "r": 61,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 262.041,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33282,
    "c": 0.15223,
    "h": 292.9
  },
  "luminance": 0.03117
}

Semantic roles & 50–950 ramp

primary
#3D197B
secondary
#87AF40
accent
#E93FAB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D197B

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

Preview Lab → · Contrast checker → · Palette generator →

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