#3D176B#3D176B

#3D176B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.136 H 298.8°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#3D176B
RGBrgb(61, 23, 107)
HSLhsl(267, 65%, 25%)
HSVhsv(267, 79%, 42%)
CMYKcmyk(43%, 78.5%, 0%, 58%)
CIE-LABlab(18.66, 36.51, -41.59)
CIE-LCHlch(18.66, 55.34, 311.28°)
OKLaboklab(31.52% 0.0655 -0.1189)
OKLCHoklch(31.52% 0.136 298.8)
XYZxyz(4.8840, 2.6664, 14.1644)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D176B #456B17
analogous
#171B6B #3D176B #67176B
triadic
#3D176B #6B3D17 #176B3D
tetradic
#3D176B #6B171B #456B17 #176B67
square
#3D176B #6B171B #456B17 #176B67
split-complementary
#3D176B #6B6717 #1B6B17
monochromatic
#0E0519 #200C39 #3D176B #5A229D #762DD0

Accessibility & contrast

On white

13.70
#3D176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D176B
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D176B#FFFFFF#000000##FFFFFF
##3D176B1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6D
Deuteranopia (green-blind)
#002D69
Tritanopia (blue-blind)
#322D40
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3d176b;
/* rgb */ color: rgb(61, 23, 107);
/* oklch */ color: oklch(31.5% 0.136 298.8);
Tailwind
colors: {
  custom: {
    50: '#785896',
    500: '#3d176b',
    950: '#000000',
  },
}
SCSS
$custom: #3d176b;
$custom-light: #785896;
$custom-dark: #000000;
JSON
{
  "hex": "#3d176b",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 267.143,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31518,
    "c": 0.13572,
    "h": 298.8
  },
  "luminance": 0.02666
}

Semantic roles & 50–950 ramp

primary
#3D176B
secondary
#74A13D
accent
#E8409C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3D176B

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

Preview Lab → · Contrast checker → · Palette generator →

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