#400C3D#400C3D

#400C3D is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.0% C 0.102 H 330.5°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#400C3D
RGBrgb(64, 12, 61)
HSLhsl(303, 68%, 15%)
HSVhsv(303, 81%, 25%)
CMYKcmyk(0%, 81.2%, 4.7%, 74.9%)
CIE-LABlab(13.77, 31.23, -18.22)
CIE-LCHlch(13.77, 36.16, 329.75°)
OKLaboklab(27.01% 0.0887 -0.0502)
OKLCHoklch(27.01% 0.102 330.5)
XYZxyz(3.0881, 1.6901, 4.5775)
Luminance0.0169 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C3D #0C400F
analogous
#290C40 #400C3D #400C23
triadic
#400C3D #3D400C #0C3D40
tetradic
#400C3D #40290C #0C400F #0C2340
square
#400C3D #40290C #0C400F #0C2340
split-complementary
#400C3D #23400C #0C4029
monochromatic
#1A0519 #1A0519 #400C3D #74166E #A71F9F

Accessibility & contrast

On white

15.70
#400C3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#400C3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C3D
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C3D#FFFFFF#000000##FFFFFF
##400C3D1.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071F3E
Deuteranopia (green-blind)
#1C263C
Tritanopia (blue-blind)
#431323
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400c3d;
/* rgb */ color: rgb(64, 12, 61);
/* oklch */ color: oklch(27.0% 0.102 330.5);
Tailwind
colors: {
  custom: {
    50: '#775172',
    500: '#400c3d',
    950: '#000000',
  },
}
SCSS
$custom: #400c3d;
$custom-light: #775172;
$custom-dark: #000000;
JSON
{
  "hex": "#400c3d",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 61
  },
  "hsl": {
    "h": 303.462,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.27005,
    "c": 0.10193,
    "h": 330.5
  },
  "luminance": 0.0169
}

Semantic roles & 50–950 ramp

primary
#400C3D
secondary
#2C7C30
accent
#EB473D
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090208
muted
#7B787B

Preview Lab

Preview with #400C3D

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

Preview Lab → · Contrast checker → · Palette generator →

#400C3D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva