#3D1878#3D1878

#3D1878 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.150 H 294.0°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#3D1878
RGBrgb(61, 24, 120)
HSLhsl(263, 67%, 28%)
HSVhsv(263, 80%, 47%)
CMYKcmyk(49.2%, 80%, 0%, 52.9%)
CIE-LABlab(20.05, 39.64, -47.71)
CIE-LCHlch(20.05, 62.03, 309.72°)
OKLaboklab(32.87% 0.0609 -0.1368)
OKLCHoklch(32.87% 0.15 294)
XYZxyz(5.6403, 3.0013, 18.0478)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1878 #537818
analogous
#182378 #3D1878 #6D1878
triadic
#3D1878 #783D18 #18783D
tetradic
#3D1878 #781823 #537818 #18786D
square
#3D1878 #781823 #537818 #18786D
split-complementary
#3D1878 #786D18 #237818
monochromatic
#0D051A #230E45 #3D1878 #5722AB #7334D6

Accessibility & contrast

On white

13.12
#3D1878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3D1878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1878
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1878#FFFFFF#000000##FFFFFF
##3D18781.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d1878;
/* rgb */ color: rgb(61, 24, 120);
/* oklch */ color: oklch(32.9% 0.150 294.0);
Tailwind
colors: {
  custom: {
    50: '#795aa0',
    500: '#3d1878',
    950: '#000000',
  },
}
SCSS
$custom: #3d1878;
$custom-light: #795aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1878",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 263.125,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32873,
    "c": 0.14978,
    "h": 294
  },
  "luminance": 0.03001
}

Semantic roles & 50–950 ramp

primary
#3D1878
secondary
#83AD3F
accent
#EA3EA8
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3D1878

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

Preview Lab → · Contrast checker → · Palette generator →

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