#3D1978#3D1978

#3D1978 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.149 H 293.8°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#3D1978
RGBrgb(61, 25, 120)
HSLhsl(263, 66%, 28%)
HSVhsv(263, 79%, 47%)
CMYKcmyk(49.2%, 79.2%, 0%, 52.9%)
CIE-LABlab(20.22, 39.16, -47.44)
CIE-LCHlch(20.22, 61.51, 309.54°)
OKLaboklab(32.99% 0.06 -0.1361)
OKLCHoklch(32.99% 0.149 293.8)
XYZxyz(5.6613, 3.0433, 18.0548)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1978 #547819
analogous
#192478 #3D1978 #6C1978
triadic
#3D1978 #783D19 #19783D
tetradic
#3D1978 #781924 #547819 #19786C
square
#3D1978 #781924 #547819 #19786C
split-complementary
#3D1978 #786C19 #247819
monochromatic
#0D0519 #230E45 #3D1978 #5724AB #7236D5

Accessibility & contrast

On white

13.05
#3D1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3D1978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1978
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1978#FFFFFF#000000##FFFFFF
##3D19781.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#2B3348
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3d1978;
/* rgb */ color: rgb(61, 25, 120);
/* oklch */ color: oklch(33.0% 0.149 293.8);
Tailwind
colors: {
  custom: {
    50: '#795aa0',
    500: '#3d1978',
    950: '#000000',
  },
}
SCSS
$custom: #3d1978;
$custom-light: #795aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1978",
  "rgb": {
    "r": 61,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 262.737,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3299,
    "c": 0.14871,
    "h": 293.8
  },
  "luminance": 0.03043
}

Semantic roles & 50–950 ramp

primary
#3D1978
secondary
#84AD40
accent
#E83FA8
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3D1978

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

Preview Lab → · Contrast checker → · Palette generator →

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