#3D1240#3D1240

#3D1240 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.4% C 0.094 H 325.1°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#3D1240
RGBrgb(61, 18, 64)
HSLhsl(296, 56%, 16%)
HSVhsv(296, 72%, 25%)
CMYKcmyk(4.7%, 71.9%, 0%, 74.9%)
CIE-LABlab(14.37, 28.25, -19.42)
CIE-LCHlch(14.37, 34.28, 325.50°)
OKLaboklab(27.39% 0.0771 -0.0538)
OKLCHoklch(27.39% 0.094 325.1)
XYZxyz(3.0661, 1.7951, 5.0345)
Luminance0.0180 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1240 #154012
analogous
#261240 #3D1240 #40122C
triadic
#3D1240 #403D12 #12403D
tetradic
#3D1240 #402612 #154012 #122C40
square
#3D1240 #402612 #154012 #122C40
split-complementary
#3D1240 #2C4012 #124026
monochromatic
#170718 #170718 #3D1240 #6B1F70 #982DA0

Accessibility & contrast

On white

15.45
#3D1240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#3D1240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1240
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1240#FFFFFF#000000##FFFFFF
##3D12401.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2141
Deuteranopia (green-blind)
#1B263F
Tritanopia (blue-blind)
#3F1927
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3d1240;
/* rgb */ color: rgb(61, 18, 64);
/* oklch */ color: oklch(27.4% 0.094 325.1);
Tailwind
colors: {
  custom: {
    50: '#745475',
    500: '#3d1240',
    950: '#000000',
  },
}
SCSS
$custom: #3d1240;
$custom-light: #745475;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1240",
  "rgb": {
    "r": 61,
    "g": 18,
    "b": 64
  },
  "hsl": {
    "h": 296.087,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.27392,
    "c": 0.09406,
    "h": 325.1
  },
  "luminance": 0.01795
}

Semantic roles & 50–950 ramp

primary
#3D1240
secondary
#397935
accent
#DF4852
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080308
muted
#7B787B

Preview Lab

Preview with #3D1240

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

Preview Lab → · Contrast checker → · Palette generator →

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