#400B45#400B45

#400B45 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.5% C 0.111 H 324.2°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#400B45
RGBrgb(64, 11, 69)
HSLhsl(295, 73%, 16%)
HSVhsv(295, 84%, 27%)
CMYKcmyk(7.2%, 84.1%, 0%, 72.9%)
CIE-LABlab(14.17, 33.21, -23.21)
CIE-LCHlch(14.17, 40.52, 325.05°)
OKLaboklab(27.47% 0.0897 -0.0647)
OKLCHoklch(27.47% 0.111 324.2)
XYZxyz(3.3081, 1.7592, 5.7944)
Luminance0.0176 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B45 #10450B
analogous
#230B45 #400B45 #450B2D
triadic
#400B45 #45400B #0B4540
tetradic
#400B45 #45230B #10450B #0B2D45
square
#400B45 #45230B #10450B #0B2D45
split-complementary
#400B45 #2D450B #0B4523
monochromatic
#18041A #18041A #400B45 #71137A #A21CAF

Accessibility & contrast

On white

15.53
#400B45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#400B45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400B45
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B45#FFFFFF#000000##FFFFFF
##400B451.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002047
Deuteranopia (green-blind)
#162644
Tritanopia (blue-blind)
#411627
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400b45;
/* rgb */ color: rgb(64, 11, 69);
/* oklch */ color: oklch(27.5% 0.111 324.2);
Tailwind
colors: {
  custom: {
    50: '#775179',
    500: '#400b45',
    950: '#000000',
  },
}
SCSS
$custom: #400b45;
$custom-light: #775179;
$custom-dark: #000000;
JSON
{
  "hex": "#400b45",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 69
  },
  "hsl": {
    "h": 294.828,
    "s": 72.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.27465,
    "c": 0.1106,
    "h": 324.2
  },
  "luminance": 0.01759
}

Semantic roles & 50–950 ramp

primary
#400B45
secondary
#32812A
accent
#EF3948
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090209
muted
#7B787B

Preview Lab

Preview with #400B45

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

Preview Lab → · Contrast checker → · Palette generator →

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