#400C3A#400C3A

#400C3A is a dark, moderate purple. Relative luminance 0.017; OKLCH L 26.8% C 0.099 H 333.1°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#400C3A
RGBrgb(64, 12, 58)
HSLhsl(307, 68%, 15%)
HSVhsv(307, 81%, 25%)
CMYKcmyk(0%, 81.2%, 9.4%, 74.9%)
CIE-LABlab(13.58, 30.67, -16.38)
CIE-LCHlch(13.58, 34.77, 331.90°)
OKLaboklab(26.81% 0.0885 -0.0449)
OKLCHoklch(26.81% 0.099 333.1)
XYZxyz(3.0096, 1.6587, 4.1638)
Luminance0.0166 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C3A #0C4012
analogous
#2C0C40 #400C3A #400C20
triadic
#400C3A #3A400C #0C3A40
tetradic
#400C3A #402C0C #0C4012 #0C2040
square
#400C3A #402C0C #0C4012 #0C2040
split-complementary
#400C3A #20400C #0C402C
monochromatic
#1A0517 #1A0517 #400C3A #741669 #A71F97

Accessibility & contrast

On white

15.77
#400C3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C3A
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C3A#FFFFFF#000000##FFFFFF
##400C3A1.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1E3B
Deuteranopia (green-blind)
#1D2539
Tritanopia (blue-blind)
#431122
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400c3a;
/* rgb */ color: rgb(64, 12, 58);
/* oklch */ color: oklch(26.8% 0.099 333.1);
Tailwind
colors: {
  custom: {
    50: '#775170',
    500: '#400c3a',
    950: '#000000',
  },
}
SCSS
$custom: #400c3a;
$custom-light: #775170;
$custom-dark: #000000;
JSON
{
  "hex": "#400c3a",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 58
  },
  "hsl": {
    "h": 306.923,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.26812,
    "c": 0.09924,
    "h": 333.1
  },
  "luminance": 0.01658
}

Semantic roles & 50–950 ramp

primary
#400C3A
secondary
#2C7C35
accent
#EB513D
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #400C3A

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

Preview Lab → · Contrast checker → · Palette generator →

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