#3D0C40#3D0C40

#3D0C40 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.7% C 0.103 H 325.5°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#3D0C40
RGBrgb(61, 12, 64)
HSLhsl(297, 68%, 15%)
HSVhsv(297, 81%, 25%)
CMYKcmyk(4.7%, 81.2%, 0%, 74.9%)
CIE-LABlab(13.38, 31.03, -20.99)
CIE-LCHlch(13.38, 37.46, 325.93°)
OKLaboklab(26.68% 0.0848 -0.0584)
OKLCHoklch(26.68% 0.103 325.5)
XYZxyz(2.9813, 1.6254, 5.0062)
Luminance0.0163 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D0C40 #0F400C
analogous
#230C40 #3D0C40 #400C29
triadic
#3D0C40 #403D0C #0C403D
tetradic
#3D0C40 #40230C #0F400C #0C2940
square
#3D0C40 #40230C #0F400C #0C2940
split-complementary
#3D0C40 #29400C #0C4023
monochromatic
#19051A #19051A #3D0C40 #6E1674 #9F1FA7

Accessibility & contrast

On white

15.85
#3D0C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#3D0C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D0C40
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D0C40#FFFFFF#000000##FFFFFF
##3D0C401.0015.851.3315.85
#FFFFFF15.851.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021E41
Deuteranopia (green-blind)
#17243F
Tritanopia (blue-blind)
#3F1525
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #3d0c40;
/* rgb */ color: rgb(61, 12, 64);
/* oklch */ color: oklch(26.7% 0.103 325.5);
Tailwind
colors: {
  custom: {
    50: '#755175',
    500: '#3d0c40',
    950: '#000000',
  },
}
SCSS
$custom: #3d0c40;
$custom-light: #755175;
$custom-dark: #000000;
JSON
{
  "hex": "#3d0c40",
  "rgb": {
    "r": 61,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 296.538,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.2668,
    "c": 0.10297,
    "h": 325.5
  },
  "luminance": 0.01625
}

Semantic roles & 50–950 ramp

primary
#3D0C40
secondary
#307C2C
accent
#EB3D47
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3D0C40

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

Preview Lab → · Contrast checker → · Palette generator →

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