#400E3E#400E3E

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

Color values

HEX#400E3E
RGBrgb(64, 14, 62)
HSLhsl(302, 64%, 15%)
HSVhsv(302, 78%, 25%)
CMYKcmyk(0%, 78.1%, 3.1%, 74.9%)
CIE-LABlab(14.13, 30.59, -18.36)
CIE-LCHlch(14.13, 35.67, 329.03°)
OKLaboklab(27.28% 0.0863 -0.0506)
OKLCHoklch(27.28% 0.1 329.6)
XYZxyz(3.1409, 1.7521, 4.7293)
Luminance0.0175 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E3E #0E4010
analogous
#290E40 #400E3E #400E25
triadic
#400E3E #3E400E #0E3E40
tetradic
#400E3E #40290E #0E4010 #0E2540
square
#400E3E #40290E #0E4010 #0E2540
split-complementary
#400E3E #25400E #0E4029
monochromatic
#190518 #190518 #400E3E #72196F #A4249F

Accessibility & contrast

On white

15.55
#400E3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400E3E
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E3E#FFFFFF#000000##FFFFFF
##400E3E1.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08203F
Deuteranopia (green-blind)
#1C263D
Tritanopia (blue-blind)
#431424
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400e3e;
/* rgb */ color: rgb(64, 14, 62);
/* oklch */ color: oklch(27.3% 0.100 329.6);
Tailwind
colors: {
  custom: {
    50: '#775273',
    500: '#400e3e',
    950: '#000000',
  },
}
SCSS
$custom: #400e3e;
$custom-light: #775273;
$custom-dark: #000000;
JSON
{
  "hex": "#400e3e",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 62
  },
  "hsl": {
    "h": 302.4,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.27284,
    "c": 0.10008,
    "h": 329.6
  },
  "luminance": 0.01752
}

Semantic roles & 50–950 ramp

primary
#400E3E
secondary
#2F7B32
accent
#E74741
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400E3E

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

Preview Lab → · Contrast checker → · Palette generator →

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