#3D1156#3D1156

#3D1156 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.9% C 0.119 H 310.0°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#3D1156
RGBrgb(61, 17, 86)
HSLhsl(278, 67%, 20%)
HSVhsv(278, 80%, 34%)
CMYKcmyk(29.1%, 80.2%, 0%, 66.3%)
CIE-LABlab(15.82, 33.86, -32.25)
CIE-LCHlch(15.82, 46.76, 316.39°)
OKLaboklab(28.95% 0.0766 -0.0914)
OKLCHoklch(28.95% 0.119 310)
XYZxyz(3.8043, 2.0650, 9.0005)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1156 #2A5611
analogous
#1B1156 #3D1156 #56114C
triadic
#3D1156 #563D11 #11563D
tetradic
#3D1156 #561B11 #2A5611 #114C56
square
#3D1156 #561B11 #2A5611 #114C56
split-complementary
#3D1156 #4C5611 #11561B
monochromatic
#12051A #190723 #3D1156 #611B89 #8525BC

Accessibility & contrast

On white

14.86
#3D1156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#3D1156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1156
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1156#FFFFFF#000000##FFFFFF
##3D11561.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002658
Deuteranopia (green-blind)
#022855
Tritanopia (blue-blind)
#392132
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3d1156;
/* rgb */ color: rgb(61, 17, 86);
/* oklch */ color: oklch(28.9% 0.119 310.0);
Tailwind
colors: {
  custom: {
    50: '#765486',
    500: '#3d1156',
    950: '#000000',
  },
}
SCSS
$custom: #3d1156;
$custom-light: #765486;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1156",
  "rgb": {
    "r": 61,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 278.261,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28948,
    "c": 0.11924,
    "h": 310
  },
  "luminance": 0.02065
}

Semantic roles & 50–950 ramp

primary
#3D1156
secondary
#558F34
accent
#EA3E7C
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3D1156

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

Preview Lab → · Contrast checker → · Palette generator →

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