#400F3C#400F3C

#400F3C is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.3% C 0.097 H 331.3°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#400F3C
RGBrgb(64, 15, 60)
HSLhsl(305, 62%, 15%)
HSVhsv(305, 77%, 25%)
CMYKcmyk(0%, 76.6%, 6.2%, 74.9%)
CIE-LABlab(14.16, 29.75, -16.89)
CIE-LCHlch(14.16, 34.21, 330.42°)
OKLaboklab(27.27% 0.0849 -0.0464)
OKLCHoklch(27.27% 0.097 331.3)
XYZxyz(3.1008, 1.7581, 4.4501)
Luminance0.0176 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F3C #0F4013
analogous
#2B0F40 #400F3C #400F23
triadic
#400F3C #3C400F #0F3C40
tetradic
#400F3C #402B0F #0F4013 #0F2340
square
#400F3C #402B0F #0F4013 #0F2340
split-complementary
#400F3C #23400F #0F402B
monochromatic
#190617 #190617 #400F3C #721B6A #A32699

Accessibility & contrast

On white

15.54
#400F3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F3C
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F3C#FFFFFF#000000##FFFFFF
##400F3C1.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C203D
Deuteranopia (green-blind)
#1E263B
Tritanopia (blue-blind)
#431424
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400f3c;
/* rgb */ color: rgb(64, 15, 60);
/* oklch */ color: oklch(27.3% 0.097 331.3);
Tailwind
colors: {
  custom: {
    50: '#775272',
    500: '#400f3c',
    950: '#000000',
  },
}
SCSS
$custom: #400f3c;
$custom-light: #775272;
$custom-dark: #000000;
JSON
{
  "hex": "#400f3c",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 60
  },
  "hsl": {
    "h": 304.898,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.27269,
    "c": 0.09677,
    "h": 331.3
  },
  "luminance": 0.01758
}

Semantic roles & 50–950 ramp

primary
#400F3C
secondary
#307A36
accent
#E55043
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090208
muted
#7B787B

Preview Lab

Preview with #400F3C

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

Preview Lab → · Contrast checker → · Palette generator →

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