#400438#400438

#400438 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.9% C 0.108 H 334.7°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#400438
RGBrgb(64, 4, 56)
HSLhsl(308, 88%, 13%)
HSVhsv(308, 94%, 25%)
CMYKcmyk(0%, 93.8%, 12.5%, 74.9%)
CIE-LABlab(12.37, 33.45, -16.86)
CIE-LCHlch(12.37, 37.46, 333.26°)
OKLaboklab(25.9% 0.0976 -0.0462)
OKLCHoklch(25.9% 0.108 334.7)
XYZxyz(2.8716, 1.4626, 3.8717)
Luminance0.0146 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400438 #04400C
analogous
#2A0440 #400438 #40041A
triadic
#400438 #384004 #043840
tetradic
#400438 #402A04 #04400C #041A40
square
#400438 #402A04 #04400C #041A40
split-complementary
#400438 #1A4004 #04402A
monochromatic
#1D0219 #1D0219 #400438 #7A086A #B30B9D

Accessibility & contrast

On white

16.25
#400438 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#400438 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400438
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400438#FFFFFF#000000##FFFFFF
##4004381.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031B39
Deuteranopia (green-blind)
#1B2337
Tritanopia (blue-blind)
#440A1E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400438;
/* rgb */ color: rgb(64, 4, 56);
/* oklch */ color: oklch(25.9% 0.108 334.7);
Tailwind
colors: {
  custom: {
    50: '#784d6f',
    500: '#400438',
    950: '#000000',
  },
}
SCSS
$custom: #400438;
$custom-light: #784d6f;
$custom-dark: #000000;
JSON
{
  "hex": "#400438",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 56
  },
  "hsl": {
    "h": 308,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.25901,
    "c": 0.10801,
    "h": 334.7
  },
  "luminance": 0.01462
}

Semantic roles & 50–950 ramp

primary
#400438
secondary
#1F812C
accent
#FE4629
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #400438

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

Preview Lab → · Contrast checker → · Palette generator →

#400438 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva