#3D178D#3D178D

#3D178D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.175 H 288.2°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#3D178D
RGBrgb(61, 23, 141)
HSLhsl(259, 72%, 32%)
HSVhsv(259, 84%, 55%)
CMYKcmyk(56.7%, 83.7%, 0%, 44.7%)
CIE-LABlab(22.04, 45.97, -57.69)
CIE-LCHlch(22.04, 73.77, 308.55°)
OKLaboklab(34.91% 0.0545 -0.166)
OKLCHoklch(34.91% 0.175 288.2)
XYZxyz(7.0372, 3.5276, 25.5042)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D178D #678D17
analogous
#172C8D #3D178D #78178D
triadic
#3D178D #8D3D17 #178D3D
tetradic
#3D178D #8D172C #678D17 #178D78
square
#3D178D #8D172C #678D17 #178D78
split-complementary
#3D178D #8D7817 #2C8D17
monochromatic
#0F0624 #260E58 #3D178D #5420C2 #733FE0

Accessibility & contrast

On white

12.31
#3D178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3D178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D178D
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D178D#FFFFFF#000000##FFFFFF
##3D178D1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#1A3B53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d178d;
/* rgb */ color: rgb(61, 23, 141);
/* oklch */ color: oklch(34.9% 0.175 288.2);
Tailwind
colors: {
  custom: {
    50: '#7d5aaf',
    500: '#3d178d',
    950: '#000000',
  },
}
SCSS
$custom: #3d178d;
$custom-light: #7d5aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#3d178d",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 259.322,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34906,
    "c": 0.17477,
    "h": 288.2
  },
  "luminance": 0.03528
}

Semantic roles & 50–950 ramp

primary
#3D178D
secondary
#97C040
accent
#EF39B4
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3D178D

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

Preview Lab → · Contrast checker → · Palette generator →

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