#3D104C#3D104C

#3D104C is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.0% C 0.110 H 316.3°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#3D104C
RGBrgb(61, 16, 76)
HSLhsl(285, 65%, 18%)
HSVhsv(285, 79%, 30%)
CMYKcmyk(19.7%, 78.9%, 0%, 70.2%)
CIE-LABlab(14.87, 31.92, -26.97)
CIE-LCHlch(14.87, 41.79, 319.80°)
OKLaboklab(28.02% 0.0793 -0.0759)
OKLCHoklch(28.02% 0.11 316.3)
XYZxyz(3.4141, 1.8846, 7.0200)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D104C #1F4C10
analogous
#1F104C #3D104C #4C103D
triadic
#3D104C #4C3D10 #104C3D
tetradic
#3D104C #4C1F10 #1F4C10 #103D4C
square
#3D104C #4C1F10 #1F4C10 #103D4C
split-complementary
#3D104C #3D4C10 #104C1F
monochromatic
#140519 #140519 #3D104C #661B7F #8E25B1

Accessibility & contrast

On white

15.25
#3D104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#3D104C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D104C
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D104C#FFFFFF#000000##FFFFFF
##3D104C1.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234E
Deuteranopia (green-blind)
#10274B
Tritanopia (blue-blind)
#3C1C2D
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #3d104c;
/* rgb */ color: rgb(61, 16, 76);
/* oklch */ color: oklch(28.0% 0.110 316.3);
Tailwind
colors: {
  custom: {
    50: '#75537e',
    500: '#3d104c',
    950: '#000000',
  },
}
SCSS
$custom: #3d104c;
$custom-light: #75537e;
$custom-dark: #000000;
JSON
{
  "hex": "#3d104c",
  "rgb": {
    "r": 61,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 285,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.28019,
    "c": 0.10975,
    "h": 316.3
  },
  "luminance": 0.01884
}

Semantic roles & 50–950 ramp

primary
#3D104C
secondary
#478632
accent
#E8406A
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #3D104C

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

Preview Lab → · Contrast checker → · Palette generator →

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