#3D178F#3D178F

#3D178F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.177 H 287.7°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#3D178F
RGBrgb(61, 23, 143)
HSLhsl(259, 72%, 33%)
HSVhsv(259, 84%, 56%)
CMYKcmyk(57.3%, 83.9%, 0%, 43.9%)
CIE-LABlab(22.26, 46.53, -58.58)
CIE-LCHlch(22.26, 74.81, 308.46°)
OKLaboklab(35.12% 0.0538 -0.1686)
OKLCHoklch(35.12% 0.177 287.7)
XYZxyz(7.1873, 3.5877, 26.2950)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D178F #698F17
analogous
#172D8F #3D178F #79178F
triadic
#3D178F #8F3D17 #178F3D
tetradic
#3D178F #8F172D #698F17 #178F79
square
#3D178F #8F172D #698F17 #178F79
split-complementary
#3D178F #8F7917 #2D8F17
monochromatic
#100626 #270F5A #3D178F #531FC4 #7340E0

Accessibility & contrast

On white

12.23
#3D178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3D178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D178F
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D178F#FFFFFF#000000##FFFFFF
##3D178F1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#173C54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d178f;
/* rgb */ color: rgb(61, 23, 143);
/* oklch */ color: oklch(35.1% 0.177 287.7);
Tailwind
colors: {
  custom: {
    50: '#7d5bb1',
    500: '#3d178f',
    950: '#000000',
  },
}
SCSS
$custom: #3d178f;
$custom-light: #7d5bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d178f",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 259,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35118,
    "c": 0.17701,
    "h": 287.7
  },
  "luminance": 0.03588
}

Semantic roles & 50–950 ramp

primary
#3D178F
secondary
#98C141
accent
#EF39B5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3D178F

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

Preview Lab → · Contrast checker → · Palette generator →

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