#3D176A#3D176A

#3D176A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.135 H 299.2°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#3D176A
RGBrgb(61, 23, 106)
HSLhsl(267, 64%, 25%)
HSVhsv(267, 78%, 42%)
CMYKcmyk(42.5%, 78.3%, 0%, 58.4%)
CIE-LABlab(18.56, 36.24, -41.08)
CIE-LCHlch(18.56, 54.78, 311.41°)
OKLaboklab(31.42% 0.0657 -0.1174)
OKLCHoklch(31.42% 0.135 299.2)
XYZxyz(4.8317, 2.6454, 13.8889)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D176A #446A17
analogous
#171A6A #3D176A #66176A
triadic
#3D176A #6A3D17 #176A3D
tetradic
#3D176A #6A171A #446A17 #176A66
square
#3D176A #6A171A #446A17 #176A66
split-complementary
#3D176A #6A6617 #1A6A17
monochromatic
#0E0519 #200C38 #3D176A #5A229C #772DCF

Accessibility & contrast

On white

13.73
#3D176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3D176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D176A
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D176A#FFFFFF#000000##FFFFFF
##3D176A1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6C
Deuteranopia (green-blind)
#002C68
Tritanopia (blue-blind)
#322C3F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3d176a;
/* rgb */ color: rgb(61, 23, 106);
/* oklch */ color: oklch(31.4% 0.135 299.2);
Tailwind
colors: {
  custom: {
    50: '#775895',
    500: '#3d176a',
    950: '#000000',
  },
}
SCSS
$custom: #3d176a;
$custom-light: #775895;
$custom-dark: #000000;
JSON
{
  "hex": "#3d176a",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 267.47,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31425,
    "c": 0.13455,
    "h": 299.2
  },
  "luminance": 0.02645
}

Semantic roles & 50–950 ramp

primary
#3D176A
secondary
#73A03D
accent
#E7409B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3D176A

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

Preview Lab → · Contrast checker → · Palette generator →

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