#400F3E#400F3E

#400F3E is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.4% C 0.099 H 329.6°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#400F3E
RGBrgb(64, 15, 62)
HSLhsl(302, 62%, 15%)
HSVhsv(302, 77%, 25%)
CMYKcmyk(0%, 76.6%, 3.1%, 74.9%)
CIE-LABlab(14.29, 30.14, -18.11)
CIE-LCHlch(14.29, 35.16, 329.00°)
OKLaboklab(27.4% 0.0851 -0.0499)
OKLCHoklch(27.4% 0.099 329.6)
XYZxyz(3.1547, 1.7797, 4.7338)
Luminance0.0178 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F3E #0F4011
analogous
#290F40 #400F3E #400F25
triadic
#400F3E #3E400F #0F3E40
tetradic
#400F3E #40290F #0F4011 #0F2540
square
#400F3E #40290F #0F4011 #0F2540
split-complementary
#400F3E #25400F #0F4029
monochromatic
#190618 #190618 #400F3E #721B6E #A3269E

Accessibility & contrast

On white

15.49
#400F3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#400F3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F3E
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F3E#FFFFFF#000000##FFFFFF
##400F3E1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A203F
Deuteranopia (green-blind)
#1D273D
Tritanopia (blue-blind)
#431525
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400f3e;
/* rgb */ color: rgb(64, 15, 62);
/* oklch */ color: oklch(27.4% 0.099 329.6);
Tailwind
colors: {
  custom: {
    50: '#775273',
    500: '#400f3e',
    950: '#000000',
  },
}
SCSS
$custom: #400f3e;
$custom-light: #775273;
$custom-dark: #000000;
JSON
{
  "hex": "#400f3e",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 62
  },
  "hsl": {
    "h": 302.449,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.27398,
    "c": 0.09864,
    "h": 329.6
  },
  "luminance": 0.01779
}

Semantic roles & 50–950 ramp

primary
#400F3E
secondary
#307A33
accent
#E54943
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400F3E

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

Preview Lab → · Contrast checker → · Palette generator →

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