#3D196A#3D196A

#3D196A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.132 H 298.8°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#3D196A
RGBrgb(61, 25, 106)
HSLhsl(267, 62%, 26%)
HSVhsv(267, 76%, 42%)
CMYKcmyk(42.5%, 76.4%, 0%, 58.4%)
CIE-LABlab(18.92, 35.23, -40.50)
CIE-LCHlch(18.92, 53.68, 311.02°)
OKLaboklab(31.68% 0.0637 -0.1157)
OKLCHoklch(31.68% 0.132 298.8)
XYZxyz(4.8730, 2.7279, 13.9027)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D196A #466A19
analogous
#191D6A #3D196A #65196A
triadic
#3D196A #6A3D19 #196A3D
tetradic
#3D196A #6A191D #466A19 #196A65
square
#3D196A #6A191D #466A19 #196A65
split-complementary
#3D196A #6A6519 #1D6A19
monochromatic
#0E0619 #210D38 #3D196A #59259C #7630CD

Accessibility & contrast

On white

13.59
#3D196A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3D196A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D196A
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D196A#FFFFFF#000000##FFFFFF
##3D196A1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6C
Deuteranopia (green-blind)
#002D68
Tritanopia (blue-blind)
#322D40
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3d196a;
/* rgb */ color: rgb(61, 25, 106);
/* oklch */ color: oklch(31.7% 0.132 298.8);
Tailwind
colors: {
  custom: {
    50: '#775995',
    500: '#3d196a',
    950: '#000000',
  },
}
SCSS
$custom: #3d196a;
$custom-light: #775995;
$custom-dark: #000000;
JSON
{
  "hex": "#3d196a",
  "rgb": {
    "r": 61,
    "g": 25,
    "b": 106
  },
  "hsl": {
    "h": 266.667,
    "s": 61.832,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31676,
    "c": 0.13208,
    "h": 298.8
  },
  "luminance": 0.02728
}

Semantic roles & 50–950 ramp

primary
#3D196A
secondary
#75A03F
accent
#E5439D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3D196A

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

Preview Lab → · Contrast checker → · Palette generator →

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