#400B43#400B43

#400B43 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.3% C 0.109 H 325.7°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#400B43
RGBrgb(64, 11, 67)
HSLhsl(297, 72%, 15%)
HSVhsv(297, 84%, 26%)
CMYKcmyk(4.5%, 83.6%, 0%, 73.7%)
CIE-LABlab(14.03, 32.80, -22.04)
CIE-LCHlch(14.03, 39.52, 326.11°)
OKLaboklab(27.32% 0.0898 -0.0613)
OKLCHoklch(27.32% 0.109 325.7)
XYZxyz(3.2471, 1.7348, 5.4729)
Luminance0.0174 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B43 #0E430B
analogous
#240B43 #400B43 #430B2A
triadic
#400B43 #43400B #0B4340
tetradic
#400B43 #43240B #0E430B #0B2A43
square
#400B43 #43240B #0E430B #0B2A43
split-complementary
#400B43 #2A430B #0B4324
monochromatic
#19041A #19041A #400B43 #721478 #A41CAC

Accessibility & contrast

On white

15.59
#400B43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400B43
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B43#FFFFFF#000000##FFFFFF
##400B431.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002045
Deuteranopia (green-blind)
#182642
Tritanopia (blue-blind)
#421526
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400b43;
/* rgb */ color: rgb(64, 11, 67);
/* oklch */ color: oklch(27.3% 0.109 325.7);
Tailwind
colors: {
  custom: {
    50: '#775177',
    500: '#400b43',
    950: '#000000',
  },
}
SCSS
$custom: #400b43;
$custom-light: #775177;
$custom-dark: #000000;
JSON
{
  "hex": "#400b43",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 67
  },
  "hsl": {
    "h": 296.786,
    "s": 71.795,
    "l": 15.294
  },
  "oklch": {
    "l": 0.2732,
    "c": 0.10873,
    "h": 325.7
  },
  "luminance": 0.01735
}

Semantic roles & 50–950 ramp

primary
#400B43
secondary
#2F802A
accent
#EF3943
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090209
muted
#7B787B

Preview Lab

Preview with #400B43

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

Preview Lab → · Contrast checker → · Palette generator →

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