#3D176F#3D176F

#3D176F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.140 H 297.3°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#3D176F
RGBrgb(61, 23, 111)
HSLhsl(266, 66%, 26%)
HSVhsv(266, 79%, 44%)
CMYKcmyk(45%, 79.3%, 0%, 56.5%)
CIE-LABlab(19.02, 37.61, -43.59)
CIE-LCHlch(19.02, 57.57, 310.79°)
OKLaboklab(31.89% 0.0644 -0.1247)
OKLCHoklch(31.89% 0.14 297.3)
XYZxyz(5.0994, 2.7525, 15.2985)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D176F #496F17
analogous
#171D6F #3D176F #69176F
triadic
#3D176F #6F3D17 #176F3D
tetradic
#3D176F #6F171D #496F17 #176F69
square
#3D176F #6F171D #496F17 #176F69
split-complementary
#3D176F #6F6917 #1D6F17
monochromatic
#0E0519 #210C3C #3D176F #5922A2 #752DD3

Accessibility & contrast

On white

13.54
#3D176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D176F
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D176F#FFFFFF#000000##FFFFFF
##3D176F1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#302E42
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3d176f;
/* rgb */ color: rgb(61, 23, 111);
/* oklch */ color: oklch(31.9% 0.140 297.3);
Tailwind
colors: {
  custom: {
    50: '#785999',
    500: '#3d176f',
    950: '#000000',
  },
}
SCSS
$custom: #3d176f;
$custom-light: #785999;
$custom-dark: #000000;
JSON
{
  "hex": "#3d176f",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 265.909,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31891,
    "c": 0.14039,
    "h": 297.3
  },
  "luminance": 0.02753
}

Semantic roles & 50–950 ramp

primary
#3D176F
secondary
#78A53D
accent
#E93F9F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D176F

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

Preview Lab → · Contrast checker → · Palette generator →

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