#400F49#400F49

#400F49 is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.2% C 0.109 H 321.0°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#400F49
RGBrgb(64, 15, 73)
HSLhsl(291, 66%, 17%)
HSVhsv(291, 79%, 29%)
CMYKcmyk(12.3%, 79.5%, 0%, 71.4%)
CIE-LABlab(15.02, 32.43, -24.63)
CIE-LCHlch(15.02, 40.72, 322.79°)
OKLaboklab(28.17% 0.085 -0.0689)
OKLCHoklch(28.17% 0.109 321)
XYZxyz(3.4876, 1.9129, 6.4876)
Luminance0.0191 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F49 #18490F
analogous
#230F49 #400F49 #490F35
triadic
#400F49 #49400F #0F4940
tetradic
#400F49 #49230F #18490F #0F3549
square
#400F49 #49230F #18490F #0F3549
split-complementary
#400F49 #35490F #0F4923
monochromatic
#160519 #160519 #400F49 #6D197C #9924AF

Accessibility & contrast

On white

15.19
#400F49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#400F49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F49
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F49#FFFFFF#000000##FFFFFF
##400F491.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224B
Deuteranopia (green-blind)
#152748
Tritanopia (blue-blind)
#411A2B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #400f49;
/* rgb */ color: rgb(64, 15, 73);
/* oklch */ color: oklch(28.2% 0.109 321.0);
Tailwind
colors: {
  custom: {
    50: '#77537c',
    500: '#400f49',
    950: '#000000',
  },
}
SCSS
$custom: #400f49;
$custom-light: #77537c;
$custom-dark: #000000;
JSON
{
  "hex": "#400f49",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 73
  },
  "hsl": {
    "h": 290.69,
    "s": 65.909,
    "l": 17.255
  },
  "oklch": {
    "l": 0.28165,
    "c": 0.10942,
    "h": 321
  },
  "luminance": 0.01913
}

Semantic roles & 50–950 ramp

primary
#400F49
secondary
#3D8330
accent
#E93F59
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#090309
muted
#7B787B

Preview Lab

Preview with #400F49

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

Preview Lab → · Contrast checker → · Palette generator →

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