#400E3D#400E3D

#400E3D is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.2% C 0.099 H 330.5°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#400E3D
RGBrgb(64, 14, 61)
HSLhsl(304, 64%, 15%)
HSVhsv(304, 78%, 25%)
CMYKcmyk(0%, 78.1%, 4.7%, 74.9%)
CIE-LABlab(14.07, 30.39, -17.75)
CIE-LCHlch(14.07, 35.19, 329.72°)
OKLaboklab(27.22% 0.0863 -0.0489)
OKLCHoklch(27.22% 0.099 330.5)
XYZxyz(3.1137, 1.7412, 4.5861)
Luminance0.0174 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E3D #0E4011
analogous
#2A0E40 #400E3D #400E24
triadic
#400E3D #3D400E #0E3D40
tetradic
#400E3D #402A0E #0E4011 #0E2440
square
#400E3D #402A0E #0E4011 #0E2440
split-complementary
#400E3D #24400E #0E402A
monochromatic
#190518 #190518 #400E3D #72196D #A4249D

Accessibility & contrast

On white

15.58
#400E3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400E3D
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E3D#FFFFFF#000000##FFFFFF
##400E3D1.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091F3E
Deuteranopia (green-blind)
#1D263C
Tritanopia (blue-blind)
#431424
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400e3d;
/* rgb */ color: rgb(64, 14, 61);
/* oklch */ color: oklch(27.2% 0.099 330.5);
Tailwind
colors: {
  custom: {
    50: '#775272',
    500: '#400e3d',
    950: '#000000',
  },
}
SCSS
$custom: #400e3d;
$custom-light: #775272;
$custom-dark: #000000;
JSON
{
  "hex": "#400e3d",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 61
  },
  "hsl": {
    "h": 303.6,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.27219,
    "c": 0.09916,
    "h": 330.5
  },
  "luminance": 0.01741
}

Semantic roles & 50–950 ramp

primary
#400E3D
secondary
#2F7B33
accent
#E74B41
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090208
muted
#7B787B

Preview Lab

Preview with #400E3D

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

Preview Lab → · Contrast checker → · Palette generator →

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