#3D177D#3D177D

#3D177D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.157 H 292.6°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#3D177D
RGBrgb(61, 23, 125)
HSLhsl(262, 69%, 29%)
HSVhsv(262, 82%, 49%)
CMYKcmyk(51.2%, 81.6%, 0%, 51%)
CIE-LABlab(20.38, 41.51, -50.35)
CIE-LCHlch(20.38, 65.25, 309.50°)
OKLaboklab(33.26% 0.0601 -0.1446)
OKLCHoklch(33.26% 0.157 292.6)
XYZxyz(5.9315, 3.0853, 19.6811)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D177D #577D17
analogous
#17247D #3D177D #70177D
triadic
#3D177D #7D3D17 #177D3D
tetradic
#3D177D #7D1724 #577D17 #177D70
square
#3D177D #7D1724 #577D17 #177D70
split-complementary
#3D177D #7D7017 #247D17
monochromatic
#0D051A #240D49 #3D177D #5621B1 #7235DA

Accessibility & contrast

On white

12.99
#3D177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3D177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D177D
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D177D#FFFFFF#000000##FFFFFF
##3D177D1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#28344A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3d177d;
/* rgb */ color: rgb(61, 23, 125);
/* oklch */ color: oklch(33.3% 0.157 292.6);
Tailwind
colors: {
  custom: {
    50: '#7a59a4',
    500: '#3d177d',
    950: '#000000',
  },
}
SCSS
$custom: #3d177d;
$custom-light: #7a59a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3d177d",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 262.353,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33256,
    "c": 0.15658,
    "h": 292.6
  },
  "luminance": 0.03086
}

Semantic roles & 50–950 ramp

primary
#3D177D
secondary
#87B23E
accent
#EC3CAA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D177D

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

Preview Lab → · Contrast checker → · Palette generator →

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