#3D1171#3D1171

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

Color values

HEX#3D1171
RGBrgb(61, 17, 113)
HSLhsl(268, 74%, 25%)
HSVhsv(268, 85%, 44%)
CMYKcmyk(46%, 85%, 0%, 55.7%)
CIE-LABlab(18.30, 40.80, -46.07)
CIE-LCHlch(18.30, 61.54, 311.53°)
OKLaboklab(31.45% 0.0688 -0.132)
OKLCHoklch(31.45% 0.149 297.5)
XYZxyz(5.1048, 2.5852, 15.8496)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1171 #457111
analogous
#111571 #3D1171 #6D1171
triadic
#3D1171 #713D11 #11713D
tetradic
#3D1171 #711115 #457111 #11716D
square
#3D1171 #711115 #457111 #11716D
split-complementary
#3D1171 #716D11 #157111
monochromatic
#0E041B #20093C #3D1171 #5A19A6 #7621DB

Accessibility & contrast

On white

13.84
#3D1171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3D1171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1171
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1171#FFFFFF#000000##FFFFFF
##3D11711.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#2F2D42
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3d1171;
/* rgb */ color: rgb(61, 17, 113);
/* oklch */ color: oklch(31.4% 0.149 297.5);
Tailwind
colors: {
  custom: {
    50: '#79569b',
    500: '#3d1171',
    950: '#000000',
  },
}
SCSS
$custom: #3d1171;
$custom-light: #79569b;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1171",
  "rgb": {
    "r": 61,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 267.5,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31445,
    "c": 0.14886,
    "h": 297.5
  },
  "luminance": 0.02585
}

Semantic roles & 50–950 ramp

primary
#3D1171
secondary
#74A836
accent
#F1379C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3D1171

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

Preview Lab → · Contrast checker → · Palette generator →

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