#3D1872#3D1872

#3D1872 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.143 H 296.0°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#3D1872
RGBrgb(61, 24, 114)
HSLhsl(265, 65%, 27%)
HSVhsv(265, 79%, 45%)
CMYKcmyk(46.5%, 78.9%, 0%, 55.3%)
CIE-LABlab(19.47, 37.96, -44.79)
CIE-LCHlch(19.47, 58.72, 310.28°)
OKLaboklab(32.29% 0.0626 -0.1283)
OKLCHoklch(32.29% 0.143 296)
XYZxyz(5.2876, 2.8601, 16.1898)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1872 #4D7218
analogous
#182072 #3D1872 #6A1872
triadic
#3D1872 #723D18 #18723D
tetradic
#3D1872 #721820 #4D7218 #18726A
square
#3D1872 #721820 #4D7218 #18726A
split-complementary
#3D1872 #726A18 #207218
monochromatic
#0E0519 #220D3F #3D1872 #5823A5 #7431D4

Accessibility & contrast

On white

13.36
#3D1872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#3D1872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1872
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1872#FFFFFF#000000##FFFFFF
##3D18721.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#2E3044
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3d1872;
/* rgb */ color: rgb(61, 24, 114);
/* oklch */ color: oklch(32.3% 0.143 296.0);
Tailwind
colors: {
  custom: {
    50: '#78599b',
    500: '#3d1872',
    950: '#000000',
  },
}
SCSS
$custom: #3d1872;
$custom-light: #78599b;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1872",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 264.667,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.32294,
    "c": 0.14277,
    "h": 296
  },
  "luminance": 0.0286
}

Semantic roles & 50–950 ramp

primary
#3D1872
secondary
#7CA73E
accent
#E840A3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D1872

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

Preview Lab → · Contrast checker → · Palette generator →

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