#3D1874#3D1874

#3D1874 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.145 H 295.3°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#3D1874
RGBrgb(61, 24, 116)
HSLhsl(264, 66%, 27%)
HSVhsv(264, 79%, 45%)
CMYKcmyk(47.4%, 79.3%, 0%, 54.5%)
CIE-LABlab(19.66, 38.52, -45.77)
CIE-LCHlch(19.66, 59.82, 310.08°)
OKLaboklab(32.49% 0.0621 -0.1312)
OKLCHoklch(32.49% 0.145 295.3)
XYZxyz(5.4026, 2.9062, 16.7959)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1874 #4F7418
analogous
#182174 #3D1874 #6B1874
triadic
#3D1874 #743D18 #18743D
tetradic
#3D1874 #741821 #4F7418 #18746B
square
#3D1874 #741821 #4F7418 #18746B
split-complementary
#3D1874 #746B18 #217418
monochromatic
#0D0519 #220E41 #3D1874 #5822A7 #7332D5

Accessibility & contrast

On white

13.28
#3D1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#3D1874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1874
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1874#FFFFFF#000000##FFFFFF
##3D18741.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002E72
Tritanopia (blue-blind)
#2D3145
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3d1874;
/* rgb */ color: rgb(61, 24, 116);
/* oklch */ color: oklch(32.5% 0.145 295.3);
Tailwind
colors: {
  custom: {
    50: '#79599d',
    500: '#3d1874',
    950: '#000000',
  },
}
SCSS
$custom: #3d1874;
$custom-light: #79599d;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1874",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 264.13,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32485,
    "c": 0.14511,
    "h": 295.3
  },
  "luminance": 0.02906
}

Semantic roles & 50–950 ramp

primary
#3D1874
secondary
#7EA93F
accent
#E93FA4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3D1874

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

Preview Lab → · Contrast checker → · Palette generator →

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