#400F3F#400F3F

#400F3F is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.5% C 0.100 H 328.7°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#400F3F
RGBrgb(64, 15, 63)
HSLhsl(301, 62%, 15%)
HSVhsv(301, 77%, 25%)
CMYKcmyk(0%, 76.6%, 1.6%, 74.9%)
CIE-LABlab(14.35, 30.34, -18.72)
CIE-LCHlch(14.35, 35.65, 328.33°)
OKLaboklab(27.46% 0.0851 -0.0517)
OKLCHoklch(27.46% 0.1 328.7)
XYZxyz(3.1823, 1.7907, 4.8797)
Luminance0.0179 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F3F #0F4010
analogous
#280F40 #400F3F #400F26
triadic
#400F3F #3F400F #0F3F40
tetradic
#400F3F #40280F #0F4010 #0F2640
square
#400F3F #40280F #0F4010 #0F2640
split-complementary
#400F3F #26400F #0F4028
monochromatic
#190618 #190618 #400F3F #721B70 #A326A1

Accessibility & contrast

On white

15.46
#400F3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F3F
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F3F#FFFFFF#000000##FFFFFF
##400F3F1.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092040
Deuteranopia (green-blind)
#1C273E
Tritanopia (blue-blind)
#421625
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400f3f;
/* rgb */ color: rgb(64, 15, 63);
/* oklch */ color: oklch(27.5% 0.100 328.7);
Tailwind
colors: {
  custom: {
    50: '#775274',
    500: '#400f3f',
    950: '#000000',
  },
}
SCSS
$custom: #400f3f;
$custom-light: #775274;
$custom-dark: #000000;
JSON
{
  "hex": "#400f3f",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 63
  },
  "hsl": {
    "h": 301.224,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.27463,
    "c": 0.09958,
    "h": 328.7
  },
  "luminance": 0.01791
}

Semantic roles & 50–950 ramp

primary
#400F3F
secondary
#307A32
accent
#E54643
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400F3F

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

Preview Lab → · Contrast checker → · Palette generator →

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