#400F3D#400F3D

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

Color values

HEX#400F3D
RGBrgb(64, 15, 61)
HSLhsl(304, 62%, 15%)
HSVhsv(304, 77%, 25%)
CMYKcmyk(0%, 76.6%, 4.7%, 74.9%)
CIE-LABlab(14.22, 29.95, -17.50)
CIE-LCHlch(14.22, 34.68, 329.70°)
OKLaboklab(27.33% 0.085 -0.0482)
OKLCHoklch(27.33% 0.098 330.5)
XYZxyz(3.1275, 1.7688, 4.5907)
Luminance0.0177 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F3D #0F4012
analogous
#2A0F40 #400F3D #400F24
triadic
#400F3D #3D400F #0F3D40
tetradic
#400F3D #402A0F #0F4012 #0F2440
square
#400F3D #402A0F #0F4012 #0F2440
split-complementary
#400F3D #24400F #0F402A
monochromatic
#190618 #190618 #400F3D #721B6C #A3269C

Accessibility & contrast

On white

15.51
#400F3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F3D
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F3D#FFFFFF#000000##FFFFFF
##400F3D1.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B203E
Deuteranopia (green-blind)
#1D263C
Tritanopia (blue-blind)
#431524
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400f3d;
/* rgb */ color: rgb(64, 15, 61);
/* oklch */ color: oklch(27.3% 0.098 330.5);
Tailwind
colors: {
  custom: {
    50: '#775272',
    500: '#400f3d',
    950: '#000000',
  },
}
SCSS
$custom: #400f3d;
$custom-light: #775272;
$custom-dark: #000000;
JSON
{
  "hex": "#400f3d",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 61
  },
  "hsl": {
    "h": 303.673,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.27333,
    "c": 0.0977,
    "h": 330.5
  },
  "luminance": 0.01769
}

Semantic roles & 50–950 ramp

primary
#400F3D
secondary
#307A35
accent
#E54D43
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090208
muted
#7B787B

Preview Lab

Preview with #400F3D

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

Preview Lab → · Contrast checker → · Palette generator →

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