#3D179F#3D179F

#3D179F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.9% C 0.195 H 284.2°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#3D179F
RGBrgb(61, 23, 159)
HSLhsl(257, 75%, 36%)
HSVhsv(257, 86%, 62%)
CMYKcmyk(61.6%, 85.5%, 0%, 37.6%)
CIE-LABlab(24.02, 50.96, -65.53)
CIE-LCHlch(24.02, 83.01, 307.88°)
OKLaboklab(36.85% 0.0478 -0.1889)
OKLCHoklch(36.85% 0.195 284.2)
XYZxyz(8.4869, 4.1075, 33.1398)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D179F #799F17
analogous
#17359F #3D179F #81179F
triadic
#3D179F #9F3D17 #179F3D
tetradic
#3D179F #9F1735 #799F17 #179F81
square
#3D179F #9F1735 #799F17 #179F81
split-complementary
#3D179F #9F8117 #359F17
monochromatic
#140834 #280F6A #3D179F #521FD4 #764BE5

Accessibility & contrast

On white

11.53
#3D179F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3D179F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D179F
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D179F#FFFFFF#000000##FFFFFF
##3D179F1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00359D
Tritanopia (blue-blind)
#00435E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3d179f;
/* rgb */ color: rgb(61, 23, 159);
/* oklch */ color: oklch(36.9% 0.195 284.2);
Tailwind
colors: {
  custom: {
    50: '#805cbd',
    500: '#3d179f',
    950: '#000000',
  },
}
SCSS
$custom: #3d179f;
$custom-light: #805cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3d179f",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 159
  },
  "hsl": {
    "h": 256.765,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36851,
    "c": 0.19484,
    "h": 284.2
  },
  "luminance": 0.04108
}

Semantic roles & 50–950 ramp

primary
#3D179F
secondary
#A4C74B
accent
#F136BD
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #3D179F

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

Preview Lab → · Contrast checker → · Palette generator →

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