#400C38#400C38

#400C38 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.7% C 0.098 H 334.9°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#400C38
RGBrgb(64, 12, 56)
HSLhsl(309, 68%, 15%)
HSVhsv(309, 81%, 25%)
CMYKcmyk(0%, 81.2%, 12.5%, 74.9%)
CIE-LABlab(13.46, 30.30, -15.13)
CIE-LCHlch(13.46, 33.87, 333.46°)
OKLaboklab(26.69% 0.0883 -0.0413)
OKLCHoklch(26.69% 0.098 334.9)
XYZxyz(2.9597, 1.6387, 3.9010)
Luminance0.0164 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C38 #0C4014
analogous
#2E0C40 #400C38 #400C1E
triadic
#400C38 #38400C #0C3840
tetradic
#400C38 #402E0C #0C4014 #0C1E40
square
#400C38 #402E0C #0C4014 #0C1E40
split-complementary
#400C38 #1E400C #0C402E
monochromatic
#1A0517 #1A0517 #400C38 #741665 #A71F92

Accessibility & contrast

On white

15.82
#400C38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#400C38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C38
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C38#FFFFFF#000000##FFFFFF
##400C381.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1E39
Deuteranopia (green-blind)
#1E2537
Tritanopia (blue-blind)
#441020
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400c38;
/* rgb */ color: rgb(64, 12, 56);
/* oklch */ color: oklch(26.7% 0.098 334.9);
Tailwind
colors: {
  custom: {
    50: '#77516e',
    500: '#400c38',
    950: '#000000',
  },
}
SCSS
$custom: #400c38;
$custom-light: #77516e;
$custom-dark: #000000;
JSON
{
  "hex": "#400c38",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 56
  },
  "hsl": {
    "h": 309.231,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.26687,
    "c": 0.09751,
    "h": 334.9
  },
  "luminance": 0.01638
}

Semantic roles & 50–950 ramp

primary
#400C38
secondary
#2C7C38
accent
#EB573D
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #400C38

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

Preview Lab → · Contrast checker → · Palette generator →

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