#400F38#400F38

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

Color values

HEX#400F38
RGBrgb(64, 15, 56)
HSLhsl(310, 62%, 15%)
HSVhsv(310, 77%, 25%)
CMYKcmyk(0%, 76.6%, 12.5%, 74.9%)
CIE-LABlab(13.93, 29.00, -14.41)
CIE-LCHlch(13.93, 32.38, 333.58°)
OKLaboklab(27.02% 0.0845 -0.0393)
OKLCHoklch(27.02% 0.093 335)
XYZxyz(2.9990, 1.7174, 3.9142)
Luminance0.0172 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F38 #0F4017
analogous
#2F0F40 #400F38 #400F1F
triadic
#400F38 #38400F #0F3840
tetradic
#400F38 #402F0F #0F4017 #0F1F40
square
#400F38 #402F0F #0F4017 #0F1F40
split-complementary
#400F38 #1F400F #0F402F
monochromatic
#190616 #190616 #400F38 #721B63 #A3268F

Accessibility & contrast

On white

15.63
#400F38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F38
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F38#FFFFFF#000000##FFFFFF
##400F381.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1F39
Deuteranopia (green-blind)
#1F2637
Tritanopia (blue-blind)
#431221
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400f38;
/* rgb */ color: rgb(64, 15, 56);
/* oklch */ color: oklch(27.0% 0.093 335.0);
Tailwind
colors: {
  custom: {
    50: '#77526e',
    500: '#400f38',
    950: '#000000',
  },
}
SCSS
$custom: #400f38;
$custom-light: #77526e;
$custom-dark: #000000;
JSON
{
  "hex": "#400f38",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 56
  },
  "hsl": {
    "h": 309.796,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.27023,
    "c": 0.09314,
    "h": 335
  },
  "luminance": 0.01717
}

Semantic roles & 50–950 ramp

primary
#400F38
secondary
#307A3C
accent
#E55D43
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #400F38

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

Preview Lab → · Contrast checker → · Palette generator →

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