#400E45#400E45

#400E45 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.8% C 0.107 H 324.0°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#400E45
RGBrgb(64, 14, 69)
HSLhsl(295, 66%, 16%)
HSVhsv(295, 80%, 27%)
CMYKcmyk(7.2%, 79.7%, 0%, 72.9%)
CIE-LABlab(14.59, 32.01, -22.54)
CIE-LCHlch(14.59, 39.15, 324.85°)
OKLaboklab(27.77% 0.0864 -0.0628)
OKLCHoklch(27.77% 0.107 324)
XYZxyz(3.3455, 1.8339, 5.8068)
Luminance0.0183 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E45 #13450E
analogous
#250E45 #400E45 #450E2F
triadic
#400E45 #45400E #0E4540
tetradic
#400E45 #45250E #13450E #0E2F45
square
#400E45 #45250E #13450E #0E2F45
split-complementary
#400E45 #2F450E #0E4525
monochromatic
#180519 #180519 #400E45 #6F1878 #9E23AB

Accessibility & contrast

On white

15.36
#400E45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#400E45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400E45
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E45#FFFFFF#000000##FFFFFF
##400E451.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012147
Deuteranopia (green-blind)
#182744
Tritanopia (blue-blind)
#411828
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #400e45;
/* rgb */ color: rgb(64, 14, 69);
/* oklch */ color: oklch(27.8% 0.107 324.0);
Tailwind
colors: {
  custom: {
    50: '#775279',
    500: '#400e45',
    950: '#000000',
  },
}
SCSS
$custom: #400e45;
$custom-light: #775279;
$custom-dark: #000000;
JSON
{
  "hex": "#400e45",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 69
  },
  "hsl": {
    "h": 294.545,
    "s": 66.265,
    "l": 16.275
  },
  "oklch": {
    "l": 0.27765,
    "c": 0.10679,
    "h": 324
  },
  "luminance": 0.01834
}

Semantic roles & 50–950 ramp

primary
#400E45
secondary
#36802F
accent
#E93F4E
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090209
muted
#7B787B

Preview Lab

Preview with #400E45

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

Preview Lab → · Contrast checker → · Palette generator →

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