#3D1566#3D1566

#3D1566 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.132 H 301.3°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#3D1566
RGBrgb(61, 21, 102)
HSLhsl(270, 66%, 24%)
HSVhsv(270, 79%, 40%)
CMYKcmyk(40.2%, 79.4%, 0%, 60%)
CIE-LABlab(17.86, 36.12, -39.61)
CIE-LCHlch(17.86, 53.60, 312.37°)
OKLaboklab(30.82% 0.0688 -0.113)
OKLCHoklch(30.82% 0.132 301.3)
XYZxyz(4.5903, 2.4877, 12.8061)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1566 #3E6615
analogous
#151566 #3D1566 #661566
triadic
#3D1566 #663D15 #15663D
tetradic
#3D1566 #661515 #3E6615 #156666
square
#3D1566 #661515 #3E6615 #156666
split-complementary
#3D1566 #666615 #156615
monochromatic
#0F0519 #1F0B33 #3D1566 #5B1F99 #7A2ACC

Accessibility & contrast

On white

14.02
#3D1566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#3D1566 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1566
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1566#FFFFFF#000000##FFFFFF
##3D15661.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B68
Deuteranopia (green-blind)
#002B64
Tritanopia (blue-blind)
#342A3C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3d1566;
/* rgb */ color: rgb(61, 21, 102);
/* oklch */ color: oklch(30.8% 0.132 301.3);
Tailwind
colors: {
  custom: {
    50: '#775792',
    500: '#3d1566',
    950: '#000000',
  },
}
SCSS
$custom: #3d1566;
$custom-light: #775792;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1566",
  "rgb": {
    "r": 61,
    "g": 21,
    "b": 102
  },
  "hsl": {
    "h": 269.63,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.3082,
    "c": 0.1323,
    "h": 301.3
  },
  "luminance": 0.02488
}

Semantic roles & 50–950 ramp

primary
#3D1566
secondary
#6C9D3A
accent
#E93F95
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3D1566

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

Preview Lab → · Contrast checker → · Palette generator →

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