#3D1778#3D1778

#3D1778 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.151 H 294.2°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#3D1778
RGBrgb(61, 23, 120)
HSLhsl(264, 68%, 28%)
HSVhsv(264, 81%, 47%)
CMYKcmyk(49.2%, 80.8%, 0%, 52.9%)
CIE-LABlab(19.89, 40.11, -47.98)
CIE-LCHlch(19.89, 62.53, 309.90°)
OKLaboklab(32.76% 0.0617 -0.1376)
OKLCHoklch(32.76% 0.151 294.2)
XYZxyz(5.6201, 2.9608, 18.0410)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1778 #527817
analogous
#172278 #3D1778 #6D1778
triadic
#3D1778 #783D17 #17783D
tetradic
#3D1778 #781722 #527817 #17786D
square
#3D1778 #781722 #527817 #17786D
split-complementary
#3D1778 #786D17 #227817
monochromatic
#0D051A #230D45 #3D1778 #5721AB #7332D8

Accessibility & contrast

On white

13.19
#3D1778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3D1778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1778
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1778#FFFFFF#000000##FFFFFF
##3D17781.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#2B3247
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3d1778;
/* rgb */ color: rgb(61, 23, 120);
/* oklch */ color: oklch(32.8% 0.151 294.2);
Tailwind
colors: {
  custom: {
    50: '#7959a0',
    500: '#3d1778',
    950: '#000000',
  },
}
SCSS
$custom: #3d1778;
$custom-light: #7959a0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1778",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 263.505,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32759,
    "c": 0.15083,
    "h": 294.2
  },
  "luminance": 0.02961
}

Semantic roles & 50–950 ramp

primary
#3D1778
secondary
#81AD3E
accent
#EB3DA7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3D1778

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

Preview Lab → · Contrast checker → · Palette generator →

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