#400B38#400B38

#400B38 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.6% C 0.099 H 334.9°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#400B38
RGBrgb(64, 11, 56)
HSLhsl(309, 71%, 15%)
HSVhsv(309, 83%, 25%)
CMYKcmyk(0%, 82.8%, 12.5%, 74.9%)
CIE-LABlab(13.32, 30.71, -15.36)
CIE-LCHlch(13.32, 34.33, 333.43°)
OKLaboklab(26.58% 0.0895 -0.042)
OKLCHoklch(26.58% 0.099 334.9)
XYZxyz(2.9479, 1.6151, 3.8971)
Luminance0.0162 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B38 #0B4013
analogous
#2E0B40 #400B38 #400B1D
triadic
#400B38 #38400B #0B3840
tetradic
#400B38 #402E0B #0B4013 #0B1D40
square
#400B38 #402E0B #0B4013 #0B1D40
split-complementary
#400B38 #1D400B #0B402E
monochromatic
#1A0417 #1A0417 #400B38 #741466 #A81D93

Accessibility & contrast

On white

15.87
#400B38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#400B38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400B38
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B38#FFFFFF#000000##FFFFFF
##400B381.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1D39
Deuteranopia (green-blind)
#1E2537
Tritanopia (blue-blind)
#440F20
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400b38;
/* rgb */ color: rgb(64, 11, 56);
/* oklch */ color: oklch(26.6% 0.099 334.9);
Tailwind
colors: {
  custom: {
    50: '#77506e',
    500: '#400b38',
    950: '#000000',
  },
}
SCSS
$custom: #400b38;
$custom-light: #77506e;
$custom-dark: #000000;
JSON
{
  "hex": "#400b38",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 56
  },
  "hsl": {
    "h": 309.057,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.26584,
    "c": 0.09885,
    "h": 334.9
  },
  "luminance": 0.01615
}

Semantic roles & 50–950 ramp

primary
#400B38
secondary
#2A7D37
accent
#ED553A
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #400B38

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

Preview Lab → · Contrast checker → · Palette generator →

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