#400B3C#400B3C

#400B3C is a dark, moderate purple. Relative luminance 0.017; OKLCH L 26.8% C 0.102 H 331.3°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#400B3C
RGBrgb(64, 11, 60)
HSLhsl(305, 71%, 15%)
HSVhsv(305, 83%, 25%)
CMYKcmyk(0%, 82.8%, 6.2%, 74.9%)
CIE-LABlab(13.57, 31.44, -17.83)
CIE-LCHlch(13.57, 36.14, 330.45°)
OKLaboklab(26.84% 0.0898 -0.0491)
OKLCHoklch(26.84% 0.102 331.3)
XYZxyz(3.0496, 1.6558, 4.4331)
Luminance0.0166 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B3C #0B400F
analogous
#2A0B40 #400B3C #400B22
triadic
#400B3C #3C400B #0B3C40
tetradic
#400B3C #402A0B #0B400F #0B2240
square
#400B3C #402A0B #0B400F #0B2240
split-complementary
#400B3C #22400B #0B402A
monochromatic
#1A0418 #1A0418 #400B3C #74146D #A81D9E

Accessibility & contrast

On white

15.78
#400B3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400B3C
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B3C#FFFFFF#000000##FFFFFF
##400B3C1.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071E3D
Deuteranopia (green-blind)
#1C253B
Tritanopia (blue-blind)
#431122
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400b3c;
/* rgb */ color: rgb(64, 11, 60);
/* oklch */ color: oklch(26.8% 0.102 331.3);
Tailwind
colors: {
  custom: {
    50: '#775072',
    500: '#400b3c',
    950: '#000000',
  },
}
SCSS
$custom: #400b3c;
$custom-light: #775072;
$custom-dark: #000000;
JSON
{
  "hex": "#400b3c",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 60
  },
  "hsl": {
    "h": 304.528,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.26839,
    "c": 0.10233,
    "h": 331.3
  },
  "luminance": 0.01656
}

Semantic roles & 50–950 ramp

primary
#400B3C
secondary
#2A7D30
accent
#ED483A
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090208
muted
#7B787B

Preview Lab

Preview with #400B3C

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

Preview Lab → · Contrast checker → · Palette generator →

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