#3D176D#3D176D

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

Color values

HEX#3D176D
RGBrgb(61, 23, 109)
HSLhsl(267, 65%, 26%)
HSVhsv(267, 79%, 43%)
CMYKcmyk(44%, 78.9%, 0%, 57.3%)
CIE-LABlab(18.84, 37.06, -42.59)
CIE-LCHlch(18.84, 56.46, 311.03°)
OKLaboklab(31.7% 0.0649 -0.1218)
OKLCHoklch(31.7% 0.138 298.1)
XYZxyz(4.9905, 2.7089, 14.7250)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D176D #476D17
analogous
#171C6D #3D176D #68176D
triadic
#3D176D #6D3D17 #176D3D
tetradic
#3D176D #6D171C #476D17 #176D68
square
#3D176D #6D171C #476D17 #176D68
split-complementary
#3D176D #6D6817 #1C6D17
monochromatic
#0E0519 #210C3A #3D176D #5922A0 #762CD2

Accessibility & contrast

On white

13.62
#3D176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3D176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D176D
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D176D#FFFFFF#000000##FFFFFF
##3D176D1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6F
Deuteranopia (green-blind)
#002D6B
Tritanopia (blue-blind)
#312E41
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3d176d;
/* rgb */ color: rgb(61, 23, 109);
/* oklch */ color: oklch(31.7% 0.138 298.1);
Tailwind
colors: {
  custom: {
    50: '#785898',
    500: '#3d176d',
    950: '#000000',
  },
}
SCSS
$custom: #3d176d;
$custom-light: #785898;
$custom-dark: #000000;
JSON
{
  "hex": "#3d176d",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 266.512,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31703,
    "c": 0.13806,
    "h": 298.1
  },
  "luminance": 0.02709
}

Semantic roles & 50–950 ramp

primary
#3D176D
secondary
#76A33D
accent
#E8409E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D176D

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

Preview Lab → · Contrast checker → · Palette generator →

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