#400C3E#400C3E

#400C3E is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.1% C 0.103 H 329.6°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#400C3E
RGBrgb(64, 12, 62)
HSLhsl(302, 68%, 15%)
HSVhsv(302, 81%, 25%)
CMYKcmyk(0%, 81.2%, 3.1%, 74.9%)
CIE-LABlab(13.83, 31.42, -18.82)
CIE-LCHlch(13.83, 36.63, 329.08°)
OKLaboklab(27.07% 0.0887 -0.052)
OKLCHoklch(27.07% 0.103 329.6)
XYZxyz(3.1153, 1.7010, 4.7207)
Luminance0.0170 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C3E #0C400E
analogous
#280C40 #400C3E #400C24
triadic
#400C3E #3E400C #0C3E40
tetradic
#400C3E #40280C #0C400E #0C2440
square
#400C3E #40280C #0C400E #0C2440
split-complementary
#400C3E #24400C #0C4028
monochromatic
#1A0519 #1A0519 #400C3E #741670 #A71FA2

Accessibility & contrast

On white

15.67
#400C3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C3E
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C3E#FFFFFF#000000##FFFFFF
##400C3E1.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061F3F
Deuteranopia (green-blind)
#1B263D
Tritanopia (blue-blind)
#431324
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400c3e;
/* rgb */ color: rgb(64, 12, 62);
/* oklch */ color: oklch(27.1% 0.103 329.6);
Tailwind
colors: {
  custom: {
    50: '#775173',
    500: '#400c3e',
    950: '#000000',
  },
}
SCSS
$custom: #400c3e;
$custom-light: #775173;
$custom-dark: #000000;
JSON
{
  "hex": "#400c3e",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 62
  },
  "hsl": {
    "h": 302.308,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.27072,
    "c": 0.10283,
    "h": 329.6
  },
  "luminance": 0.01701
}

Semantic roles & 50–950 ramp

primary
#400C3E
secondary
#2C7C2F
accent
#EB433D
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400C3E

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

Preview Lab → · Contrast checker → · Palette generator →

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