#3D2078#3D2078

#3D2078 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.140 H 292.3°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#3D2078
RGBrgb(61, 32, 120)
HSLhsl(260, 58%, 30%)
HSVhsv(260, 73%, 47%)
CMYKcmyk(49.2%, 73.3%, 0%, 52.9%)
CIE-LABlab(21.51, 35.51, -45.32)
CIE-LCHlch(21.51, 57.58, 308.08°)
OKLaboklab(33.9% 0.0534 -0.1299)
OKLCHoklch(33.9% 0.14 292.3)
XYZxyz(5.8302, 3.3810, 18.1111)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2078 #5B7820
analogous
#202F78 #3D2078 #692078
triadic
#3D2078 #783D20 #20783D
tetradic
#3D2078 #78202F #5B7820 #207869
square
#3D2078 #78202F #5B7820 #207869
split-complementary
#3D2078 #786920 #2F7820
monochromatic
#0C0618 #241348 #3D2078 #562DA8 #7245CD

Accessibility & contrast

On white

12.53
#3D2078 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3D2078 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2078
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2078#FFFFFF#000000##FFFFFF
##3D20781.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#003276
Tritanopia (blue-blind)
#2B3649
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3d2078;
/* rgb */ color: rgb(61, 32, 120);
/* oklch */ color: oklch(33.9% 0.140 292.3);
Tailwind
colors: {
  custom: {
    50: '#795ea0',
    500: '#3d2078',
    950: '#000000',
  },
}
SCSS
$custom: #3d2078;
$custom-light: #795ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2078",
  "rgb": {
    "r": 61,
    "g": 32,
    "b": 120
  },
  "hsl": {
    "h": 259.773,
    "s": 57.895,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33903,
    "c": 0.14044,
    "h": 292.3
  },
  "luminance": 0.03381
}

Semantic roles & 50–950 ramp

primary
#3D2078
secondary
#8BAB48
accent
#E147AE
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3D2078

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

Preview Lab → · Contrast checker → · Palette generator →

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