#3D177A#3D177A

#3D177A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.153 H 293.5°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#3D177A
RGBrgb(61, 23, 122)
HSLhsl(263, 68%, 28%)
HSVhsv(263, 81%, 48%)
CMYKcmyk(50%, 81.1%, 0%, 52.2%)
CIE-LABlab(20.08, 40.67, -48.93)
CIE-LCHlch(20.08, 63.63, 309.73°)
OKLaboklab(32.96% 0.0611 -0.1404)
OKLCHoklch(32.96% 0.153 293.5)
XYZxyz(5.7427, 3.0098, 18.6870)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D177A #547A17
analogous
#17227A #3D177A #6E177A
triadic
#3D177A #7A3D17 #177A3D
tetradic
#3D177A #7A1722 #547A17 #177A6E
square
#3D177A #7A1722 #547A17 #177A6E
split-complementary
#3D177A #7A6E17 #227A17
monochromatic
#0D051A #230D47 #3D177A #5721AD #7233D9

Accessibility & contrast

On white

13.11
#3D177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3D177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D177A
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D177A#FFFFFF#000000##FFFFFF
##3D177A1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#2A3348
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3d177a;
/* rgb */ color: rgb(61, 23, 122);
/* oklch */ color: oklch(33.0% 0.153 293.5);
Tailwind
colors: {
  custom: {
    50: '#7a59a1',
    500: '#3d177a',
    950: '#000000',
  },
}
SCSS
$custom: #3d177a;
$custom-light: #7a59a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d177a",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 263.03,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32956,
    "c": 0.15313,
    "h": 293.5
  },
  "luminance": 0.0301
}

Semantic roles & 50–950 ramp

primary
#3D177A
secondary
#84AF3E
accent
#EB3DA8
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D177A

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

Preview Lab → · Contrast checker → · Palette generator →

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