#3D1880#3D1880

#3D1880 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.159 H 291.5°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#3D1880
RGBrgb(61, 24, 128)
HSLhsl(261, 68%, 30%)
HSVhsv(261, 81%, 50%)
CMYKcmyk(52.3%, 81.3%, 0%, 49.8%)
CIE-LABlab(20.84, 41.89, -51.50)
CIE-LCHlch(20.84, 66.39, 309.12°)
OKLaboklab(33.67% 0.0583 -0.148)
OKLCHoklch(33.67% 0.159 291.5)
XYZxyz(6.1463, 3.2036, 20.7124)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1880 #5B8018
analogous
#182780 #3D1880 #711880
triadic
#3D1880 #803D18 #18803D
tetradic
#3D1880 #801827 #5B8018 #188071
square
#3D1880 #801827 #5B8018 #188071
split-complementary
#3D1880 #807118 #278018
monochromatic
#0C051A #240E4C #3D1880 #5622B4 #7239DA

Accessibility & contrast

On white

12.80
#3D1880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3D1880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1880
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1880#FFFFFF#000000##FFFFFF
##3D18801.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#26364C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d1880;
/* rgb */ color: rgb(61, 24, 128);
/* oklch */ color: oklch(33.7% 0.159 291.5);
Tailwind
colors: {
  custom: {
    50: '#7b5aa6',
    500: '#3d1880',
    950: '#000000',
  },
}
SCSS
$custom: #3d1880;
$custom-light: #7b5aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1880",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 261.346,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33667,
    "c": 0.15905,
    "h": 291.5
  },
  "luminance": 0.03204
}

Semantic roles & 50–950 ramp

primary
#3D1880
secondary
#8BB440
accent
#EB3DAD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D1880

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

Preview Lab → · Contrast checker → · Palette generator →

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