#3D177E#3D177E

#3D177E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.158 H 292.3°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#3D177E
RGBrgb(61, 23, 126)
HSLhsl(262, 69%, 29%)
HSVhsv(262, 82%, 49%)
CMYKcmyk(51.6%, 81.7%, 0%, 50.6%)
CIE-LABlab(20.48, 41.78, -50.82)
CIE-LCHlch(20.48, 65.79, 309.42°)
OKLaboklab(33.36% 0.0598 -0.146)
OKLCHoklch(33.36% 0.158 292.3)
XYZxyz(5.9957, 3.1110, 20.0192)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D177E #587E17
analogous
#17247E #3D177E #71177E
triadic
#3D177E #7E3D17 #177E3D
tetradic
#3D177E #7E1724 #587E17 #177E71
square
#3D177E #7E1724 #587E17 #177E71
split-complementary
#3D177E #7E7117 #247E17
monochromatic
#0D051A #240E4A #3D177E #5620B2 #7235DA

Accessibility & contrast

On white

12.95
#3D177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D177E
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D177E#FFFFFF#000000##FFFFFF
##3D177E1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#27354B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3d177e;
/* rgb */ color: rgb(61, 23, 126);
/* oklch */ color: oklch(33.4% 0.158 292.3);
Tailwind
colors: {
  custom: {
    50: '#7a59a4',
    500: '#3d177e',
    950: '#000000',
  },
}
SCSS
$custom: #3d177e;
$custom-light: #7a59a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3d177e",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 262.136,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33356,
    "c": 0.15773,
    "h": 292.3
  },
  "luminance": 0.03111
}

Semantic roles & 50–950 ramp

primary
#3D177E
secondary
#88B33E
accent
#EC3CAB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D177E

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

Preview Lab → · Contrast checker → · Palette generator →

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