#400F3A#400F3A

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

Color values

HEX#400F3A
RGBrgb(64, 15, 58)
HSLhsl(307, 62%, 15%)
HSVhsv(307, 77%, 25%)
CMYKcmyk(0%, 76.6%, 9.4%, 74.9%)
CIE-LABlab(14.04, 29.37, -15.65)
CIE-LCHlch(14.04, 33.28, 331.94°)
OKLaboklab(27.14% 0.0847 -0.0429)
OKLCHoklch(27.14% 0.095 333.2)
XYZxyz(3.0489, 1.7374, 4.1769)
Luminance0.0174 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F3A #0F4015
analogous
#2D0F40 #400F3A #400F21
triadic
#400F3A #3A400F #0F3A40
tetradic
#400F3A #402D0F #0F4015 #0F2140
square
#400F3A #402D0F #0F4015 #0F2140
split-complementary
#400F3A #21400F #0F402D
monochromatic
#190616 #190616 #400F3A #721B67 #A32694

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##400F3A#FFFFFF#000000##FFFFFF
##400F3A1.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)
#0D1F3B
Deuteranopia (green-blind)
#1E2639
Tritanopia (blue-blind)
#431323
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400f3a;
/* rgb */ color: rgb(64, 15, 58);
/* oklch */ color: oklch(27.1% 0.095 333.2);
Tailwind
colors: {
  custom: {
    50: '#775270',
    500: '#400f3a',
    950: '#000000',
  },
}
SCSS
$custom: #400f3a;
$custom-light: #775270;
$custom-dark: #000000;
JSON
{
  "hex": "#400f3a",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 58
  },
  "hsl": {
    "h": 307.347,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.27144,
    "c": 0.09494,
    "h": 333.2
  },
  "luminance": 0.01737
}

Semantic roles & 50–950 ramp

primary
#400F3A
secondary
#307A39
accent
#E55743
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #400F3A

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

Preview Lab → · Contrast checker → · Palette generator →

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