#400B3F#400B3F

#400B3F is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.0% C 0.105 H 328.8°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#400B3F
RGBrgb(64, 11, 63)
HSLhsl(301, 71%, 15%)
HSVhsv(301, 83%, 25%)
CMYKcmyk(0%, 82.8%, 1.6%, 74.9%)
CIE-LABlab(13.76, 32.01, -19.65)
CIE-LCHlch(13.76, 37.56, 328.46°)
OKLaboklab(27.04% 0.0899 -0.0544)
OKLCHoklch(27.04% 0.105 328.8)
XYZxyz(3.1312, 1.6884, 4.8626)
Luminance0.0169 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B3F #0B400C
analogous
#270B40 #400B3F #400B25
triadic
#400B3F #3F400B #0B3F40
tetradic
#400B3F #40270B #0B400C #0B2540
square
#400B3F #40270B #0B400C #0B2540
split-complementary
#400B3F #25400B #0B4027
monochromatic
#1A041A #1A041A #400B3F #741472 #A81DA6

Accessibility & contrast

On white

15.70
#400B3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#400B3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400B3F
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B3F#FFFFFF#000000##FFFFFF
##400B3F1.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041F40
Deuteranopia (green-blind)
#1A263E
Tritanopia (blue-blind)
#421324
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400b3f;
/* rgb */ color: rgb(64, 11, 63);
/* oklch */ color: oklch(27.0% 0.105 328.8);
Tailwind
colors: {
  custom: {
    50: '#775174',
    500: '#400b3f',
    950: '#000000',
  },
}
SCSS
$custom: #400b3f;
$custom-light: #775174;
$custom-dark: #000000;
JSON
{
  "hex": "#400b3f",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 63
  },
  "hsl": {
    "h": 301.132,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.2704,
    "c": 0.10504,
    "h": 328.8
  },
  "luminance": 0.01688
}

Semantic roles & 50–950 ramp

primary
#400B3F
secondary
#2A7D2C
accent
#ED3E3A
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400B3F

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

Preview Lab → · Contrast checker → · Palette generator →

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