#400F39#400F39

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

Color values

HEX#400F39
RGBrgb(64, 15, 57)
HSLhsl(309, 62%, 15%)
HSVhsv(309, 77%, 25%)
CMYKcmyk(0%, 76.6%, 10.9%, 74.9%)
CIE-LABlab(13.99, 29.18, -15.03)
CIE-LCHlch(13.99, 32.82, 332.75°)
OKLaboklab(27.08% 0.0846 -0.0411)
OKLCHoklch(27.08% 0.094 334.1)
XYZxyz(3.0237, 1.7273, 4.0442)
Luminance0.0173 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F39 #0F4016
analogous
#2E0F40 #400F39 #400F20
triadic
#400F39 #39400F #0F3940
tetradic
#400F39 #402E0F #0F4016 #0F2040
square
#400F39 #402E0F #0F4016 #0F2040
split-complementary
#400F39 #20400F #0F402E
monochromatic
#190616 #190616 #400F39 #721B65 #A32691

Accessibility & contrast

On white

15.61
#400F39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F39
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F39#FFFFFF#000000##FFFFFF
##400F391.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1F3A
Deuteranopia (green-blind)
#1F2638
Tritanopia (blue-blind)
#431322
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400f39;
/* rgb */ color: rgb(64, 15, 57);
/* oklch */ color: oklch(27.1% 0.094 334.1);
Tailwind
colors: {
  custom: {
    50: '#77526f',
    500: '#400f39',
    950: '#000000',
  },
}
SCSS
$custom: #400f39;
$custom-light: #77526f;
$custom-dark: #000000;
JSON
{
  "hex": "#400f39",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 57
  },
  "hsl": {
    "h": 308.571,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.27083,
    "c": 0.09404,
    "h": 334.1
  },
  "luminance": 0.01727
}

Semantic roles & 50–950 ramp

primary
#400F39
secondary
#307A3B
accent
#E55A43
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #400F39

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

Preview Lab → · Contrast checker → · Palette generator →

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