#3D176C#3D176C

#3D176C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.137 H 298.4°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#3D176C
RGBrgb(61, 23, 108)
HSLhsl(267, 65%, 26%)
HSVhsv(267, 79%, 42%)
CMYKcmyk(43.5%, 78.7%, 0%, 57.6%)
CIE-LABlab(18.75, 36.79, -42.09)
CIE-LCHlch(18.75, 55.90, 311.15°)
OKLaboklab(31.61% 0.0652 -0.1204)
OKLCHoklch(31.61% 0.137 298.4)
XYZxyz(4.9369, 2.6875, 14.4431)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D176C #466C17
analogous
#171B6C #3D176C #67176C
triadic
#3D176C #6C3D17 #176C3D
tetradic
#3D176C #6C171B #466C17 #176C67
square
#3D176C #6C171B #466C17 #176C67
split-complementary
#3D176C #6C6717 #1B6C17
monochromatic
#0E0519 #210C3A #3D176C #59229E #762CD1

Accessibility & contrast

On white

13.66
#3D176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D176C
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D176C#FFFFFF#000000##FFFFFF
##3D176C1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6E
Deuteranopia (green-blind)
#002D6A
Tritanopia (blue-blind)
#312D40
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3d176c;
/* rgb */ color: rgb(61, 23, 108);
/* oklch */ color: oklch(31.6% 0.137 298.4);
Tailwind
colors: {
  custom: {
    50: '#785897',
    500: '#3d176c',
    950: '#000000',
  },
}
SCSS
$custom: #3d176c;
$custom-light: #785897;
$custom-dark: #000000;
JSON
{
  "hex": "#3d176c",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 266.824,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3161,
    "c": 0.13689,
    "h": 298.4
  },
  "luminance": 0.02688
}

Semantic roles & 50–950 ramp

primary
#3D176C
secondary
#75A23D
accent
#E8409D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3D176C

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

Preview Lab → · Contrast checker → · Palette generator →

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