#400A3C#400A3C

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

Color values

HEX#400A3C
RGBrgb(64, 10, 60)
HSLhsl(304, 73%, 15%)
HSVhsv(304, 84%, 25%)
CMYKcmyk(0%, 84.4%, 6.2%, 74.9%)
CIE-LABlab(13.43, 31.82, -18.04)
CIE-LCHlch(13.43, 36.58, 330.45°)
OKLaboklab(26.74% 0.0909 -0.0497)
OKLCHoklch(26.74% 0.104 331.3)
XYZxyz(3.0385, 1.6336, 4.4294)
Luminance0.0163 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400A3C #0A400E
analogous
#290A40 #400A3C #400A21
triadic
#400A3C #3C400A #0A3C40
tetradic
#400A3C #40290A #0A400E #0A2140
square
#400A3C #40290A #0A400E #0A2140
split-complementary
#400A3C #21400A #0A4029
monochromatic
#1A0419 #1A0419 #400A3C #75126E #AA1B9F

Accessibility & contrast

On white

15.83
#400A3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400A3C
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400A3C#FFFFFF#000000##FFFFFF
##400A3C1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061E3D
Deuteranopia (green-blind)
#1B253B
Tritanopia (blue-blind)
#431122
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400a3c;
/* rgb */ color: rgb(64, 10, 60);
/* oklch */ color: oklch(26.7% 0.104 331.3);
Tailwind
colors: {
  custom: {
    50: '#775072',
    500: '#400a3c',
    950: '#000000',
  },
}
SCSS
$custom: #400a3c;
$custom-light: #775072;
$custom-dark: #000000;
JSON
{
  "hex": "#400a3c",
  "rgb": {
    "r": 64,
    "g": 10,
    "b": 60
  },
  "hsl": {
    "h": 304.444,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.26744,
    "c": 0.10359,
    "h": 331.3
  },
  "luminance": 0.01633
}

Semantic roles & 50–950 ramp

primary
#400A3C
secondary
#297D2F
accent
#F04638
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090208
muted
#7B787B

Preview Lab

Preview with #400A3C

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

Preview Lab → · Contrast checker → · Palette generator →

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