#400E38#400E38

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

Color values

HEX#400E38
RGBrgb(64, 14, 56)
HSLhsl(310, 64%, 15%)
HSVhsv(310, 78%, 25%)
CMYKcmyk(0%, 78.1%, 12.5%, 74.9%)
CIE-LABlab(13.77, 29.45, -14.66)
CIE-LCHlch(13.77, 32.89, 333.54°)
OKLaboklab(26.91% 0.0858 -0.04)
OKLCHoklch(26.91% 0.095 335)
XYZxyz(2.9852, 1.6898, 3.9096)
Luminance0.0169 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E38 #0E4016
analogous
#2F0E40 #400E38 #400E1F
triadic
#400E38 #38400E #0E3840
tetradic
#400E38 #402F0E #0E4016 #0E1F40
square
#400E38 #402F0E #0E4016 #0E1F40
split-complementary
#400E38 #1F400E #0E402F
monochromatic
#190516 #190516 #400E38 #721964 #A42490

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##400E38#FFFFFF#000000##FFFFFF
##400E381.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)
#0E1E39
Deuteranopia (green-blind)
#1F2637
Tritanopia (blue-blind)
#431221
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400e38;
/* rgb */ color: rgb(64, 14, 56);
/* oklch */ color: oklch(26.9% 0.095 335.0);
Tailwind
colors: {
  custom: {
    50: '#77526e',
    500: '#400e38',
    950: '#000000',
  },
}
SCSS
$custom: #400e38;
$custom-light: #77526e;
$custom-dark: #000000;
JSON
{
  "hex": "#400e38",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 56
  },
  "hsl": {
    "h": 309.6,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.26906,
    "c": 0.09466,
    "h": 335
  },
  "luminance": 0.0169
}

Semantic roles & 50–950 ramp

primary
#400E38
secondary
#2F7B3B
accent
#E75B41
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #400E38

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

Preview Lab → · Contrast checker → · Palette generator →

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